forked from MagicBane/Server
Type enum with back support
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user