From 7d80353abb23dfa5eba97bd14021eec60a852f0d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 24 Jun 2016 18:58:27 +1200 Subject: [PATCH] Fix a FlagType bug --- src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java index 30b4c860..ea1bdefe 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java +++ b/src/me/libraryaddict/disguise/disguisetypes/FlagWatcher.java @@ -420,12 +420,12 @@ public class FlagWatcher for (FlagType data : dataValues) { - if (!_entityValues.containsKey(data) || _entityValues.get(data) == null) + if (!_entityValues.containsKey(data.getIndex()) || _entityValues.get(data.getIndex()) == null) { continue; } - Object value = _entityValues.get(data); + Object value = _entityValues.get(data.getIndex()); if (isEntityAnimationsAdded() && DisguiseConfig.isMetadataPacketsEnabled() && data == FlagType.ENTITY_META) {