mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Fix Bat watcher
This commit is contained in:
parent
2ca0dbbc28
commit
bc08c933ca
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ public class BatWatcher extends LivingWatcher {
|
|||
}
|
||||
|
||||
public void setFlying(boolean flying) {
|
||||
if ((Byte) getValue(16, (byte) 1) != (flying ? 1 : 0)) {
|
||||
setValue(16, (byte) (flying ? 1 : 0));
|
||||
if (isFlying() != flying) {
|
||||
setValue(16, (byte) (flying ? 0 : 1));
|
||||
sendData(16);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue