mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 20:09:22 +00:00
Fix isSneaking bugged in 1.12 and 1.13
This commit is contained in:
parent
912ca85aff
commit
ef10444c58
1 changed files with 4 additions and 1 deletions
|
@ -399,7 +399,9 @@ public class FlagWatcher {
|
||||||
setEntityFlag(1, setSneaking);
|
setEntityFlag(1, setSneaking);
|
||||||
sendData(MetaIndex.ENTITY_META);
|
sendData(MetaIndex.ENTITY_META);
|
||||||
|
|
||||||
updatePose();
|
if (NmsVersion.v1_14.isSupported()) {
|
||||||
|
updatePose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSprinting() {
|
public boolean isSprinting() {
|
||||||
|
@ -615,6 +617,7 @@ public class FlagWatcher {
|
||||||
updatePose();
|
updatePose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NmsAddedIn(val = NmsVersion.v1_14)
|
||||||
protected void updatePose() {
|
protected void updatePose() {
|
||||||
if (isSleeping()) {
|
if (isSleeping()) {
|
||||||
setEntityPose(EntityPose.SLEEPING);
|
setEntityPose(EntityPose.SLEEPING);
|
||||||
|
|
Loading…
Reference in a new issue