From 652da07cc83b86a29ba55fbc0d755649a5423e67 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Tue, 24 Jun 2025 16:30:49 +0200 Subject: [PATCH] change warning message when no action type can be determined for an item when writing --- src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java index 30b9480..365aa65 100644 --- a/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java +++ b/src/com/gpl/rpg/atcontentstudio/model/gamedata/Item.java @@ -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) {