From dd39482ed10b79f5b9153594470f28c09758007b Mon Sep 17 00:00:00 2001 From: William Date: Fri, 28 Oct 2022 13:00:08 +0100 Subject: [PATCH] Tweaked bukkit implementation of #isDead detection --- .../main/java/net/william278/husksync/player/BukkitPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java b/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java index 85e836c4..dd0bc1bb 100644 --- a/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java +++ b/bukkit/src/main/java/net/william278/husksync/player/BukkitPlayer.java @@ -618,7 +618,7 @@ public class BukkitPlayer extends OnlineUser { @Override public boolean isDead() { - return player.getHealth() < 1; + return player.isDead() || player.getHealth() <= 0; } @Override