From 2102272aaeaff1b817d4fa2d27d08915e0be3da5 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 22 Dec 2016 13:57:17 +1300 Subject: [PATCH] Fixed a dumb mistake --- .../libraryaddict/disguise/disguisetypes/FlagWatcher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index b6790c2d..96cf6bc2 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -36,7 +36,7 @@ public class FlagWatcher { private HashMap entityValues = new HashMap<>(); private LibsEquipment equipment; private boolean hasDied; - private boolean[] modifiedEntityAnimations = new boolean[7]; + private boolean[] modifiedEntityAnimations = new boolean[8]; private List watchableObjects; public FlagWatcher(Disguise disguise) { @@ -47,7 +47,7 @@ public class FlagWatcher { private byte addEntityAnimations(byte originalValue, byte entityValue) { for (int i = 0; i < 6; i++) { - if ((entityValue & 1 << i) != 0 && !modifiedEntityAnimations[i - 1]) { + if ((entityValue & 1 << i) != 0 && !modifiedEntityAnimations[i]) { originalValue = (byte) (originalValue | 1 << i); } } @@ -401,7 +401,7 @@ public class FlagWatcher { } private void setEntityFlag(int byteValue, boolean flag) { - modifiedEntityAnimations[byteValue - 1] = true; + modifiedEntityAnimations[byteValue] = true; byte b0 = (byte) getData(FlagType.ENTITY_META);