Fix isSneaking bugged in 1.12 and 1.13

This commit is contained in:
libraryaddict 2020-03-28 19:34:19 +13:00
parent 912ca85aff
commit ef10444c58
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -399,8 +399,10 @@ public class FlagWatcher {
setEntityFlag(1, setSneaking);
sendData(MetaIndex.ENTITY_META);
if (NmsVersion.v1_14.isSupported()) {
updatePose();
}
}
public boolean isSprinting() {
return getEntityFlag(3);
@ -615,6 +617,7 @@ public class FlagWatcher {
updatePose();
}
@NmsAddedIn(val = NmsVersion.v1_14)
protected void updatePose() {
if (isSleeping()) {
setEntityPose(EntityPose.SLEEPING);