Hit Delay Fix 1.8.9 -
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
net.minecraft.client.network.NetHandlerPlayClient#handleEntityStatus Case 2 → Entity#performHurtAnimation() . if (packetIn
To avoid playing the hurt animation twice (once local, once when SPacketEntityStatus arrives), add a check: once when SPacketEntityStatus arrives)
Deploy as an optional client-side tweak, enabled by default for all PvP-oriented 1.8.9 modpacks or utilities. Appendix A: Sample code repository (GitHub): [link placeholder] Appendix B: Before/After video demonstration: [link placeholder]
