Fix null, fixed FlagWatchers, fixed typo on EquipmentSlot
This commit is contained in:
@@ -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
|
||||
|
@@ -831,7 +831,7 @@ public class ReflectionManager
|
||||
case "CHEST":
|
||||
return EquipmentSlot.CHEST;
|
||||
case "HEAD":
|
||||
return EquipmentSlot.HAND;
|
||||
return EquipmentSlot.HEAD;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
Reference in New Issue
Block a user