Don't attempt to use EntityType's that are null

This commit is contained in:
libraryaddict 2014-06-10 12:42:53 +12:00
parent 53754ee684
commit 85ff3769cf

View File

@ -150,6 +150,9 @@ public class LibsDisguises extends JavaPlugin {
*/ */
private void registerValues() { private void registerValues() {
for (DisguiseType disguiseType : DisguiseType.values()) { for (DisguiseType disguiseType : DisguiseType.values()) {
if (disguiseType.getEntityType() == null) {
continue;
}
Class watcherClass = null; Class watcherClass = null;
try { try {
switch (disguiseType) { switch (disguiseType) {