From 85ff3769cfe8e675bdb32dc1ada8e14c2049371c Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 10 Jun 2014 12:42:53 +1200 Subject: [PATCH] Don't attempt to use EntityType's that are null --- src/me/libraryaddict/disguise/LibsDisguises.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/me/libraryaddict/disguise/LibsDisguises.java b/src/me/libraryaddict/disguise/LibsDisguises.java index f654af38..c5bdec24 100644 --- a/src/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/me/libraryaddict/disguise/LibsDisguises.java @@ -150,6 +150,9 @@ public class LibsDisguises extends JavaPlugin { */ private void registerValues() { for (DisguiseType disguiseType : DisguiseType.values()) { + if (disguiseType.getEntityType() == null) { + continue; + } Class watcherClass = null; try { switch (disguiseType) {