From dcb8bc427eb828f84d40219079adba7f26e41f35 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 17 Jul 2013 13:55:30 +1200 Subject: [PATCH] Fixed sending the wrong data when modifying data 0 --- .../disguise/DisguiseTypes/FlagWatcher.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseTypes/FlagWatcher.java b/src/me/libraryaddict/disguise/DisguiseTypes/FlagWatcher.java index 5a15fcf0..0ec3a385 100644 --- a/src/me/libraryaddict/disguise/DisguiseTypes/FlagWatcher.java +++ b/src/me/libraryaddict/disguise/DisguiseTypes/FlagWatcher.java @@ -36,7 +36,7 @@ public class FlagWatcher { protected FlagWatcher(int entityId) { this.entityId = entityId; } - + public FlagWatcher clone() { FlagWatcher cloned = new FlagWatcher(entityId); cloned.entityValues = (HashMap) entityValues.clone(); @@ -165,35 +165,35 @@ public class FlagWatcher { public void setInvisible(boolean setInvis) { if (isInvisible() != setInvis) { setFlag(0, 5, true); - sendData(5); + sendData(0); } } public void setRiding(boolean setRiding) { if (isSprinting() != setRiding) { setFlag(0, 2, true); - sendData(2); + sendData(0); } } public void setRightClicking(boolean setRightClicking) { if (isRightClicking() != setRightClicking) { setFlag(0, 4, true); - sendData(4); + sendData(0); } } public void setSneaking(boolean setSneaking) { if (isSneaking() != setSneaking) { setFlag(0, 1, true); - sendData(1); + sendData(0); } } public void setSprinting(boolean setSprinting) { if (isSprinting() != setSprinting) { setFlag(0, 3, true); - sendData(3); + sendData(0); } }