mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-02-23 15:38:23 +01:00
change warning message when no action type can be determined for an item when writing
This commit is contained in:
@@ -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) {
|
} else if (this.category != null && this.category.action_type != null && this.category.action_type == ItemCategory.ActionType.use) {
|
||||||
key = "useEffect";
|
key = "useEffect";
|
||||||
} else {
|
} else {
|
||||||
try {
|
System.out.println("Could not create JSON-Map for Item: Failed to determine if the item should be used or equipped.");
|
||||||
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();
|
|
||||||
}
|
|
||||||
key = null;
|
key = null;
|
||||||
}
|
}
|
||||||
if (key != null) {
|
if (key != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user