fix knockback application logic in damage handling
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user