Skip null EntityTypes
This commit is contained in:
parent
f52d0fa17d
commit
231c35c6e3
@ -39,6 +39,10 @@ public class DisguiseRadiusCommand extends DisguiseBaseCommand implements TabCom
|
|||||||
for (EntityType type : EntityType.values()) {
|
for (EntityType type : EntityType.values()) {
|
||||||
Class c = type.getEntityClass();
|
Class c = type.getEntityClass();
|
||||||
|
|
||||||
|
if (c == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
while (!validClasses.contains(c)) {
|
while (!validClasses.contains(c)) {
|
||||||
validClasses.add(c);
|
validClasses.add(c);
|
||||||
|
|
||||||
|
@ -89,6 +89,10 @@ public class TranslateFiller {
|
|||||||
for (EntityType type : EntityType.values()) {
|
for (EntityType type : EntityType.values()) {
|
||||||
Class c = type.getEntityClass();
|
Class c = type.getEntityClass();
|
||||||
|
|
||||||
|
if (c == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
while (!validClasses.contains(c)) {
|
while (!validClasses.contains(c)) {
|
||||||
validClasses.add(c);
|
validClasses.add(c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user