A nonprofit news organization covering the U.S. criminal justice system
Projects
Topics
About
if (packetIn.getOpCode() == 2) Entity entity = packetIn.getEntity(this.clientController.netClientHandler); if (entity != null && !entity.isEntityInvulnerable()) if (entity.hurtResistantTime <= 0) // Already triggered locally? entity.performHurtAnimation();
In NetHandlerPlayClient#handleEntityStatus :
To avoid playing the hurt animation twice (once local, once when SPacketEntityStatus arrives), add a check:
if (packetIn.getOpCode() == 2) Entity entity = packetIn.getEntity(this.clientController.netClientHandler); if (entity != null && !entity.isEntityInvulnerable()) if (entity.hurtResistantTime <= 0) // Already triggered locally? entity.performHurtAnimation();
In NetHandlerPlayClient#handleEntityStatus : hit delay fix 1.8.9
To avoid playing the hurt animation twice (once local, once when SPacketEntityStatus arrives), add a check: if (packetIn
Donate now through December 31 to have your gift matched! Support independent journalism that's shining a light on injustice.