ForgePatch/patches/minecraft/net/minecraft/entity/effect/EntityLightningBolt.java.patch
2016-03-11 19:59:24 -05:00

12 lines
565 B
Diff

--- ../src-base/minecraft/net/minecraft/entity/effect/EntityLightningBolt.java
+++ ../src-work/minecraft/net/minecraft/entity/effect/EntityLightningBolt.java
@@ -104,7 +104,8 @@
for (int i = 0; i < list.size(); ++i)
{
Entity entity = (Entity)list.get(i);
- entity.func_70077_a(this);
+ if (!net.minecraftforge.event.ForgeEventFactory.onEntityStruckByLightning(entity, this))
+ entity.func_70077_a(this);
}
}
}