Type enum with back support

This commit is contained in:
MagicBot committed 2024-02-19 02:25:25 -05:00
1 parent 5b547611a5
commit 15635534b0
2 files changed
+36 -12

No files matched your search

+1 -2
View File
@@ -78,8 +78,7 @@ public class ItemTemplate {
// Parsing an enum
// item_type = Enum.ItemType.valueOf((String) jsonObject.get("item_type"));
item_type = Enum.ItemType.valueOf((String) jsonObject.get("item_type"));
item_eq_slots_value = ((Long) jsonObject.get("item_eq_slots_value")).intValue();
item_eq_slots_type = (boolean) jsonObject.get("item_eq_slots_type");