Guest User

Untitled

a guest
Jan 7th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. if (this.func_175727_C(blockpos))
  2. {
  3.     this.func_72942_c(new EntityLightningBolt(this, (double)blockpos.func_177958_n(), (double)blockpos.func_177956_o(), (double)blockpos.func_177952_p()));
  4. }
  5.  
  6. patch to
  7.  
  8. if (this.func_175727_C(blockpos))
  9. {
  10.     if (!net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.common.event...()))
  11.     this.func_72942_c(new EntityLightningBolt(this, (double)blockpos.func_177958_n(), (double)blockpos.func_177956_o(), (double)blockpos.func_177952_p()));
  12. }
  13.  
  14. 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