if statement added

This commit is contained in:
iChun 2013-07-26 12:49:14 +08:00
parent 3e8711580e
commit fb04d10886

View file

@ -47,7 +47,7 @@
*/
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9)
{
+ MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Pre((EntityLivingBase)par1Entity, this));
+ if (MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Pre((EntityLivingBase)par1Entity, this))) return;
this.func_130000_a((EntityLivingBase)par1Entity, par2, par4, par6, par8, par9);
+ MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Post((EntityLivingBase)par1Entity, this));
}