From 4d1092f41d4d678b9b0f3a744b33eb8646ec4222 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 12 Jun 2014 18:21:20 +1200 Subject: [PATCH] Rearrange this --- .../libraryaddict/disguise/commands/DisguiseRadiusCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/commands/DisguiseRadiusCommand.java b/src/me/libraryaddict/disguise/commands/DisguiseRadiusCommand.java index d8d4c68b..1c993600 100644 --- a/src/me/libraryaddict/disguise/commands/DisguiseRadiusCommand.java +++ b/src/me/libraryaddict/disguise/commands/DisguiseRadiusCommand.java @@ -26,11 +26,10 @@ public class DisguiseRadiusCommand extends BaseDisguiseCommand { public DisguiseRadiusCommand(int maxRadius) { this.maxRadius = maxRadius; for (Class c : ClassGetter.getClassesForPackage("org.bukkit.entity")) { - if (c.getAnnotation(Deprecated.class) == null && Entity.class.isAssignableFrom(c)) { + if (c != Entity.class && Entity.class.isAssignableFrom(c) && c.getAnnotation(Deprecated.class) == null) { validClasses.add(c); } } - validClasses.remove(Entity.class); } @Override