Make Integer.class work when deserializing config

This commit is contained in:
Brandt Hill
2021-02-19 19:34:57 -06:00
committed by Tomas Slusny
parent 601128c1e7
commit e1453e59e1

View File

@@ -748,7 +748,7 @@ public class ConfigManager
{
return Boolean.parseBoolean(str);
}
if (type == int.class)
if (type == int.class || type == Integer.class)
{
return Integer.parseInt(str);
}