Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (this.func_175727_C(blockpos))
- {
- this.func_72942_c(new EntityLightningBolt(this, (double)blockpos.func_177958_n(), (double)blockpos.func_177956_o(), (double)blockpos.func_177952_p()));
- }
- patch to
- if (this.func_175727_C(blockpos))
- {
- if (!net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.common.event...()))
- this.func_72942_c(new EntityLightningBolt(this, (double)blockpos.func_177958_n(), (double)blockpos.func_177956_o(), (double)blockpos.func_177952_p()));
- }
- just one line (or alternatively a call to ForgeHooks or ForgeEventFactory to fire the event, especially if the event is fired at multiple places)
Advertisement
Add Comment
Please, Sign In to add comment