From 64ded22276c439d1a63021a24dfdbbd6ff69987c Mon Sep 17 00:00:00 2001 From: Andy Dingley Date: Sun, 6 Mar 2022 14:49:53 +0000 Subject: [PATCH] Use wither as griefing entity when it indirectly hurts an entity (#8431) --- .../net/minecraft/world/entity/LivingEntity.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch b/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch index f30dd51b65..19245f05bb 100644 --- a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch @@ -193,7 +193,7 @@ boolean flag = false; if (p_21269_ instanceof WitherBoss) { - if (this.f_19853_.m_46469_().m_46207_(GameRules.f_46132_)) { -+ if (net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.f_19853_, this)) { ++ if (net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.f_19853_, p_21269_)) { BlockPos blockpos = this.m_142538_(); BlockState blockstate = Blocks.f_50070_.m_49966_(); - if (this.f_19853_.m_8055_(blockpos).m_60795_() && blockstate.m_60710_(this.f_19853_, blockpos)) {