config: add support for doubles
This commit is contained in:
@@ -754,6 +754,10 @@ public class ConfigManager
|
|||||||
{
|
{
|
||||||
return Integer.parseInt(str);
|
return Integer.parseInt(str);
|
||||||
}
|
}
|
||||||
|
if (type == double.class || type == Double.class)
|
||||||
|
{
|
||||||
|
return Double.parseDouble(str);
|
||||||
|
}
|
||||||
if (type == Color.class)
|
if (type == Color.class)
|
||||||
{
|
{
|
||||||
return ColorUtil.fromString(str);
|
return ColorUtil.fromString(str);
|
||||||
|
|||||||
Reference in New Issue
Block a user