From 377a87f7e31b321f0d75d3b7967e66b57d1e8974 Mon Sep 17 00:00:00 2001 From: AJ Ferguson Date: Sun, 29 Dec 2019 01:45:57 -0900 Subject: [PATCH] Fix health edge case If the java server sent a health value between 0 and 1, the player would die in the bedrock client --- .../java/entity/player/JavaPlayerHealthTranslator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/player/JavaPlayerHealthTranslator.java b/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/player/JavaPlayerHealthTranslator.java index 7a1eb0e10..bebd8f9d7 100644 --- a/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/player/JavaPlayerHealthTranslator.java +++ b/connector/src/main/java/org/geysermc/connector/network/translators/java/entity/player/JavaPlayerHealthTranslator.java @@ -40,8 +40,9 @@ public class JavaPlayerHealthTranslator extends PacketTranslator