Fix a FlagType bug

This commit is contained in:
libraryaddict 2016-06-24 18:58:27 +12:00
parent 182c6a3259
commit 7d80353abb

View File

@ -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)
{