new item sprite (map objects)

This commit is contained in:
Nut.andor
2025-06-28 20:45:16 +02:00
parent eb6377a983
commit 9b1ac0d3e1

View File

@@ -333,6 +333,10 @@ public class NPC extends JSONElement {
}
if (this.icon_id != null) {
String spritesheetId = this.icon_id.split(":")[0];
if (proj.getSpritesheet(spritesheetId) == null) {
Notification.addError("Error Spritesheet "+id+". has no backlink.");
return;
}
proj.getSpritesheet(spritesheetId).addBacklink(this);
}