Why are the entity classes null so much
This commit is contained in:
parent
2185e3718a
commit
3a77245353
@ -34,16 +34,10 @@ public class DisguiseRadiusCommand extends DisguiseBaseCommand implements TabCom
|
||||
public DisguiseRadiusCommand(int maxRadius) {
|
||||
this.maxRadius = maxRadius;
|
||||
|
||||
validClasses.add(Entity.class);
|
||||
|
||||
for (EntityType type : EntityType.values()) {
|
||||
Class c = type.getEntityClass();
|
||||
|
||||
if (c == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
while (Entity.class.isAssignableFrom(c) && !validClasses.contains(c) && c != Entity.class) {
|
||||
while (c != null && Entity.class.isAssignableFrom(c) && !validClasses.contains(c)) {
|
||||
validClasses.add(c);
|
||||
|
||||
c = c.getSuperclass();
|
||||
|
@ -88,11 +88,7 @@ public class TranslateFiller {
|
||||
for (EntityType type : EntityType.values()) {
|
||||
Class c = type.getEntityClass();
|
||||
|
||||
if (c == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
while (Entity.class.isAssignableFrom(c) && !validClasses.contains(c) && c != Entity.class) {
|
||||
while (c != null && Entity.class.isAssignableFrom(c) && !validClasses.contains(c)) {
|
||||
validClasses.add(c);
|
||||
|
||||
c = c.getSuperclass();
|
||||
|
Loading…
Reference in New Issue
Block a user