mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Use wither as griefing entity when it indirectly hurts an entity (#8431)
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user