Types are now always registered in uppercase

This commit is contained in:
ASangarin 2020-09-29 01:21:38 +02:00
parent ac95cab01e
commit 61ebadc3a9

View File

@ -98,7 +98,7 @@ public class Type {
}
public Type(TypeManager manager, ConfigurationSection config) {
id = config.getName();
id = config.getName().toUpperCase().replace("-", "_").replace(" ", "_");
parent = manager.get(config.getString("parent").toUpperCase().replace("-", "_").replace(" ", "_"));
set = parent.set;