Fixed sending the wrong data when modifying data 0
This commit is contained in:
parent
d1d6125d47
commit
dcb8bc427e
@ -165,35 +165,35 @@ public class FlagWatcher {
|
|||||||
public void setInvisible(boolean setInvis) {
|
public void setInvisible(boolean setInvis) {
|
||||||
if (isInvisible() != setInvis) {
|
if (isInvisible() != setInvis) {
|
||||||
setFlag(0, 5, true);
|
setFlag(0, 5, true);
|
||||||
sendData(5);
|
sendData(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRiding(boolean setRiding) {
|
public void setRiding(boolean setRiding) {
|
||||||
if (isSprinting() != setRiding) {
|
if (isSprinting() != setRiding) {
|
||||||
setFlag(0, 2, true);
|
setFlag(0, 2, true);
|
||||||
sendData(2);
|
sendData(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRightClicking(boolean setRightClicking) {
|
public void setRightClicking(boolean setRightClicking) {
|
||||||
if (isRightClicking() != setRightClicking) {
|
if (isRightClicking() != setRightClicking) {
|
||||||
setFlag(0, 4, true);
|
setFlag(0, 4, true);
|
||||||
sendData(4);
|
sendData(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSneaking(boolean setSneaking) {
|
public void setSneaking(boolean setSneaking) {
|
||||||
if (isSneaking() != setSneaking) {
|
if (isSneaking() != setSneaking) {
|
||||||
setFlag(0, 1, true);
|
setFlag(0, 1, true);
|
||||||
sendData(1);
|
sendData(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSprinting(boolean setSprinting) {
|
public void setSprinting(boolean setSprinting) {
|
||||||
if (isSprinting() != setSprinting) {
|
if (isSprinting() != setSprinting) {
|
||||||
setFlag(0, 3, true);
|
setFlag(0, 3, true);
|
||||||
sendData(3);
|
sendData(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user