mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Use MobGriefingEvent for PiglinEntity when determining whether Piglins want to pick up items. (#7762)
This commit is contained in:
1 parent
9aa04c8036
commit
df53db351e
1 file changed
+9
@@ -9,3 +9,12 @@
|
||||
this.func_184201_a(EquipmentSlotType.OFFHAND, p_234439_1_);
|
||||
this.func_233663_d_(EquipmentSlotType.OFFHAND);
|
||||
} else {
|
||||
@@ -317,7 +_,7 @@
|
||||
}
|
||||
|
||||
public boolean func_230293_i_(ItemStack p_230293_1_) {
|
||||
- return this.field_70170_p.func_82736_K().func_223586_b(GameRules.field_223599_b) && this.func_98052_bS() && PiglinTasks.func_234474_a_(this, p_230293_1_);
|
||||
+ return net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.field_70170_p, this) && this.func_98052_bS() && PiglinTasks.func_234474_a_(this, p_230293_1_);
|
||||
}
|
||||
|
||||
protected boolean func_234440_o_(ItemStack p_234440_1_) {
|
||||
Reference in new issue
Block a user