Rearrange this
This commit is contained in:
parent
cddfbafb3d
commit
4d1092f41d
@ -26,11 +26,10 @@ public class DisguiseRadiusCommand extends BaseDisguiseCommand {
|
|||||||
public DisguiseRadiusCommand(int maxRadius) {
|
public DisguiseRadiusCommand(int maxRadius) {
|
||||||
this.maxRadius = maxRadius;
|
this.maxRadius = maxRadius;
|
||||||
for (Class c : ClassGetter.getClassesForPackage("org.bukkit.entity")) {
|
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.add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validClasses.remove(Entity.class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user