diff --git a/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java b/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java index 7647dae9..0c8f0df5 100644 --- a/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java +++ b/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java @@ -179,6 +179,10 @@ public static void onEntityDamage(LivingHurtEvent event) { if (event.getSource().isFireDamage()) { PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.ON_FIRE)); } + if (player.getHealth() - event.getAmount() <= 0.0) { + PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.LOW_HP)); + PlayerDataHandler.get(player).lowHp = true; + } } }