fixing mahusive JVM crash
This commit is contained in:
1 parent
8f61271606
commit
15f99b3389
1 file changed
+2
-2
@@ -1537,8 +1537,8 @@ public class EntityValue extends Value
|
||||
{
|
||||
return;
|
||||
}
|
||||
final GameType toSet = v instanceof final NumericValue number ?
|
||||
GameType.byId(number.getInt()) :
|
||||
final GameType toSet = v instanceof NumericValue ?
|
||||
GameType.byId(((NumericValue) v).getInt()) :
|
||||
GameType.byName(v.getString().toLowerCase(Locale.ROOT), null);
|
||||
if (toSet != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user