Minor clean up

This commit is contained in:
Focusvity
2023-03-08 22:45:47 +11:00
parent e39f882ea7
commit 77be23faf0
17 changed files with 59 additions and 31 deletions
@@ -24,6 +24,7 @@ public class GameRuleUtil
}
}
@SuppressWarnings("unchecked")
private static <T> void readGameRules(World world, String s)
{
String gameRule = s.split(";")[0];
@@ -47,7 +48,7 @@ public class GameRuleUtil
return Boolean.parseBoolean(value.toString());
}
if (NumberUtils.isNumber(value.toString()))
if (NumberUtils.isCreatable(value.toString()))
{
return Integer.parseInt(value.toString());
}