diff --git a/core/src/mindustry/mod/ContentParser.java b/core/src/mindustry/mod/ContentParser.java index 6467bd7813..3e5ca141e2 100644 --- a/core/src/mindustry/mod/ContentParser.java +++ b/core/src/mindustry/mod/ContentParser.java @@ -704,10 +704,9 @@ public class ContentParser{ Class resolve(String base, Class def){ //no base class specified if(base.isEmpty() && def != null) return def; - if(!base.isEmpty() && Character.isLowerCase(base.charAt(0))) base = Strings.capitalize(base); //return mapped class if found in the global map - var out = ClassMap.classes.get(base); + var out = ClassMap.classes.get(!base.isEmpty() && Character.isLowerCase(base.charAt(0)) ? Strings.capitalize(base) : base); if(out != null) return (Class)out; //try to resolve it as a raw class name if it's allowed