mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Skip null EntityTypes
This commit is contained in:
parent
f52d0fa17d
commit
231c35c6e3
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,10 @@ public class DisguiseRadiusCommand extends DisguiseBaseCommand implements TabCom
|
|||
for (EntityType type : EntityType.values()) {
|
||||
Class c = type.getEntityClass();
|
||||
|
||||
if (c == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
while (!validClasses.contains(c)) {
|
||||
validClasses.add(c);
|
||||
|
||||
|
|
|
@ -89,6 +89,10 @@ public class TranslateFiller {
|
|||
for (EntityType type : EntityType.values()) {
|
||||
Class c = type.getEntityClass();
|
||||
|
||||
if (c == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
while (!validClasses.contains(c)) {
|
||||
validClasses.add(c);
|
||||
|
||||
|
|
Loading…
Reference in a new issue