Skip to content

Commit 302d802

Browse files
committed
[fix] 死にきれないゾンビ問題を解決?
1 parent 7ee8ae9 commit 302d802

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/github/elic0de/thejpspit/spigot/player

1 file changed

+1
-0
lines changed

src/main/java/com/github/elic0de/thejpspit/spigot/player/PitPlayer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public void increaseXP() {
262262
}
263263

264264
public void increaseHealth() {
265+
if (player.isDead()) return;
265266
player.setHealth(Math.min(player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue(),
266267
player.getHealth() + 2));
267268
}

0 commit comments

Comments
 (0)