mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-12-24 17:37:40 +01:00
Fix for nullpointerexception.
This commit is contained in:
parent
7eb4da7ee2
commit
4f644641a6
@ -1677,7 +1677,11 @@ public enum CompatibleMaterial {
|
||||
if (entityName.equals("ZOMBIE_PIGMAN")) {
|
||||
return EntityType.PIG_ZOMBIE;
|
||||
}
|
||||
return EntityType.valueOf(entityName);
|
||||
try {
|
||||
return EntityType.valueOf(entityName);
|
||||
} catch (IllegalArgumentException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user