change warning message when no action type can be determined for an item when writing

This commit is contained in:
OMGeeky
2025-06-24 16:30:49 +02:00
parent 2dbe881dd7
commit 652da07cc8

View File

@@ -388,11 +388,7 @@ public class Item extends JSONElement {
} else if (this.category != null && this.category.action_type != null && this.category.action_type == ItemCategory.ActionType.use) {
key = "useEffect";
} else {
try {
throw new IllegalArgumentException("Could not create JSON-Map for Item: Failed to determine if the items should be used or equipped.");
} catch (RuntimeException e) {
e.printStackTrace();
}
System.out.println("Could not create JSON-Map for Item: Failed to determine if the item should be used or equipped.");
key = null;
}
if (key != null) {