Skip to content

Commit

Permalink
Add proper condition
Browse files Browse the repository at this point in the history
(cherry picked from commit c11c9e1)
  • Loading branch information
Dudblockman committed May 17, 2021
1 parent d81f8d7 commit 012bf56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 012bf56

Please sign in to comment.