Skip overriding non-existent sprites

This commit is contained in:
Anuken
2022-04-26 12:03:18 -04:00
parent 42781bd754
commit b03fe2c86c

View File

@@ -185,6 +185,11 @@ public class Mods implements Loadable{
for(Fi file : sprites){
String name = file.nameWithoutExtension();
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")