Type enum with back support

This commit is contained in:
2024-02-19 02:25:25 -05:00
parent 5b547611a5
commit 15635534b0
2 changed files with 36 additions and 12 deletions
+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");