fixing mahusive JVM crash

This commit is contained in:
gnembon committed 2023-02-04 23:48:55 +01:00
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)
{