Gradual component conversion
This commit is contained in:
@@ -281,7 +281,7 @@ public class ContentParser{
|
||||
UnitType unit;
|
||||
if(locate(ContentType.unit, name) == null){
|
||||
Class<BaseUnit> type = resolve(legacyUnitMap.get(Strings.capitalize(getType(value)), getType(value)), "mindustry.entities.type.base");
|
||||
unit = new UnitType(mod + "-" + name, supply(type));
|
||||
unit = new UnitDef(mod + "-" + name, supply(type));
|
||||
}else{
|
||||
unit = locate(ContentType.unit, name);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public class Mods implements Loadable{
|
||||
public void importMod(Fi file) throws IOException{
|
||||
Fi dest = modDirectory.child(file.name());
|
||||
if(dest.exists()){
|
||||
throw new IOException("A mod with the same filename already exists!");
|
||||
throw new IOException("A file with the same name already exists in the mod folder!");
|
||||
}
|
||||
|
||||
file.copyTo(dest);
|
||||
|
||||
Reference in New Issue
Block a user