mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-02-13 21:19:09 +01:00
new item sprite (map objects)
This commit is contained in:
@@ -333,6 +333,10 @@ public class NPC extends JSONElement {
|
|||||||
}
|
}
|
||||||
if (this.icon_id != null) {
|
if (this.icon_id != null) {
|
||||||
String spritesheetId = this.icon_id.split(":")[0];
|
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);
|
proj.getSpritesheet(spritesheetId).addBacklink(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user