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;
|
return;
|
||||||
}
|
}
|
||||||
final GameType toSet = v instanceof final NumericValue number ?
|
final GameType toSet = v instanceof NumericValue ?
|
||||||
GameType.byId(number.getInt()) :
|
GameType.byId(((NumericValue) v).getInt()) :
|
||||||
GameType.byName(v.getString().toLowerCase(Locale.ROOT), null);
|
GameType.byName(v.getString().toLowerCase(Locale.ROOT), null);
|
||||||
if (toSet != null)
|
if (toSet != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user