From ef10444c58a974f027b23e2f472f67aeccacfb71 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 28 Mar 2020 19:34:19 +1300 Subject: [PATCH] Fix isSneaking bugged in 1.12 and 1.13 --- .../me/libraryaddict/disguise/disguisetypes/FlagWatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index 060a680a..f2717cef 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -399,7 +399,9 @@ public class FlagWatcher { setEntityFlag(1, setSneaking); sendData(MetaIndex.ENTITY_META); - updatePose(); + if (NmsVersion.v1_14.isSupported()) { + updatePose(); + } } public boolean isSprinting() { @@ -615,6 +617,7 @@ public class FlagWatcher { updatePose(); } + @NmsAddedIn(val = NmsVersion.v1_14) protected void updatePose() { if (isSleeping()) { setEntityPose(EntityPose.SLEEPING);