Misc fixes for mods (2)

This commit is contained in:
Anuken
2022-05-14 01:42:49 -04:00
parent b66283fbd0
commit e9290af4d2
5 changed files with 19 additions and 16 deletions

View File

@@ -188,12 +188,15 @@ public class Mods implements Loadable{
if(!prefix && !Core.atlas.has(name)){
Log.warn("Sprite '@' in mod '@' attempts to override a non-existent sprite. Ignoring.", name, mod.name);
continue;
}
//TODO !!! document this on the wiki !!!
//do not allow packing standard outline sprites for now, they are no longer necessary and waste space!
//TODO also full regions are bad: || name.endsWith("-full")
if(prefix && (name.endsWith("-outline"))) continue;
//(horrible code below)
}else if(prefix && name.endsWith("-outline") && file.path().contains("units") && !file.path().contains("blocks")){
Log.warn("Sprite '@' in mod '@' is likely to be an unnecessary unit outline. These should not be separate sprites. Ignoring.", name, mod.name);
//TODO !!! document this on the wiki !!!
//do not allow packing standard outline sprites for now, they are no longer necessary and waste space!
//TODO also full regions are bad: || name.endsWith("-full")
continue;
}
//read and bleed pixmaps in parallel
tasks.add(mainExecutor.submit(() -> {