From 012bf568619e952b40b768fb0db6bbd77a3f9c03 Mon Sep 17 00:00:00 2001 From: Logan Peterson Date: Sat, 8 May 2021 00:29:59 -0600 Subject: [PATCH] Add proper condition (cherry picked from commit c11c9e156bb07abd620dc32ea04930342737646c) --- .../java/vazkii/psi/common/core/handler/PlayerDataHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0c8f0df5..5d242e2f 100644 --- a/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java +++ b/src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java @@ -179,7 +179,7 @@ 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) { + if (player.getHealth() - event.getAmount() <= 0.0 && !PlayerDataHandler.get(player).lowHp) { PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.LOW_HP)); PlayerDataHandler.get(player).lowHp = true; }