Skip to content

Commit c11c9e1

Browse files
committed
Add proper condition
1 parent fdaa48f commit c11c9e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public static void onEntityDamage(LivingHurtEvent event) {
179179
if (event.getSource().isFireDamage()) {
180180
PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.ON_FIRE));
181181
}
182-
if (player.getHealth() - event.getAmount() <= 0.0) {
182+
if (player.getHealth() - event.getAmount() <= 0.0 && !PlayerDataHandler.get(player).lowHp) {
183183
PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.LOW_HP));
184184
PlayerDataHandler.get(player).lowHp = true;
185185
}

0 commit comments

Comments
 (0)