Skip null EntityTypes

This commit is contained in:
libraryaddict 2020-02-23 11:58:58 +13:00
parent f52d0fa17d
commit 231c35c6e3
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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);