Use wither as griefing entity when it indirectly hurts an entity (#8431)

This commit is contained in:
Andy Dingley authored and GitHub committed 2022-03-06 14:49:53 +00:00
1 parent 41c88f6e52
commit 64ded22276
1 file changed
+1 -1
@@ -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)) {