We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1c02d commit d7aa2abCopy full SHA for d7aa2ab
src/main/java/vazkii/psi/common/core/handler/PlayerDataHandler.java
@@ -178,6 +178,10 @@ public static void onEntityDamage(LivingHurtEvent event) {
178
if (event.getSource().isFireDamage()) {
179
PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.ON_FIRE));
180
}
181
+ if (player.getHealth() - event.getAmount() <= 0.0) {
182
+ PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.LOW_HP));
183
+ PlayerDataHandler.get(player).lowHp = true;
184
+ }
185
186
187
0 commit comments