mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
21 lines
1.4 KiB
Diff
21 lines
1.4 KiB
Diff
--- ../src-base/minecraft/net/minecraft/entity/monster/EntitySilverfish.java
|
|
+++ ../src-work/minecraft/net/minecraft/entity/monster/EntitySilverfish.java
|
|
@@ -184,7 +184,7 @@
|
|
{
|
|
Random random = this.field_75457_a.func_70681_au();
|
|
|
|
- if (this.field_75457_a.field_70170_p.func_82736_K().func_82766_b("mobGriefing") && random.nextInt(10) == 0)
|
|
+ if (net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(this.field_75457_a.field_70170_p, this.field_75457_a) && random.nextInt(10) == 0)
|
|
{
|
|
this.field_179483_b = EnumFacing.func_176741_a(random);
|
|
BlockPos blockpos = (new BlockPos(this.field_75457_a.field_70165_t, this.field_75457_a.field_70163_u + 0.5D, this.field_75457_a.field_70161_v)).func_177972_a(this.field_179483_b);
|
|
@@ -273,7 +273,7 @@
|
|
|
|
if (iblockstate.func_177230_c() == Blocks.field_150418_aU)
|
|
{
|
|
- if (world.func_82736_K().func_82766_b("mobGriefing"))
|
|
+ if (net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(world, this.field_179464_a))
|
|
{
|
|
world.func_175655_b(blockpos1, true);
|
|
}
|