Fix null, fixed FlagWatchers, fixed typo on EquipmentSlot

This commit is contained in:
libraryaddict
2016-07-05 17:01:51 +12:00
parent dedc043558
commit d98333f0f1
6 changed files with 35 additions and 26 deletions

View File

@@ -606,6 +606,9 @@ public class DisguiseUtilities
if (mainThread != Thread.currentThread())
throw new IllegalStateException("Cannot modify disguises on an async thread");
if (disguise.getEntity() == null)
throw new IllegalStateException("The entity for the disguisetype " + disguise.getType().name() + " is null!");
List<Player> players = new ArrayList<>();
try

View File

@@ -831,7 +831,7 @@ public class ReflectionManager
case "CHEST":
return EquipmentSlot.CHEST;
case "HEAD":
return EquipmentSlot.HAND;
return EquipmentSlot.HEAD;
}
}
catch (Exception e)