fix knockback application logic in damage handling

This commit is contained in:
2025-12-15 18:12:18 +01:00
parent 6be9927752
commit 93467760db

View File

@@ -259,7 +259,7 @@ public class Entity {
panel.player.life -= Math.max(damage, (block ? 0 : 1)); panel.player.life -= Math.max(damage, (block ? 0 : 1));
if(damage != 0) { if(damage != 0) {
//setKnockback(panel.player, this, knockbackVal); setKnockback(panel.player, this, knockbackVal);
panel.player.transparent = true; panel.player.transparent = true;
} }
panel.player.invincible = true; panel.player.invincible = true;