|
|
|
@ -353,7 +353,7 @@ public class ItemTemplate {
@@ -353,7 +353,7 @@ public class ItemTemplate {
|
|
|
|
|
if (resource_costs.isEmpty() == false) |
|
|
|
|
for (Object o : resource_costs) { |
|
|
|
|
JSONObject resource_entry = (JSONObject) o; |
|
|
|
|
Enum.ResourceType resource_type = Enum.ResourceType.valueOf((String) resource_entry.get("resource_type")); |
|
|
|
|
Enum.ResourceType resource_type = Enum.ResourceType.valueOf(((String) resource_entry.get("resource_type")).toUpperCase()); |
|
|
|
|
int resource_value = ((Long) resource_entry.get("resource_value")).intValue(); |
|
|
|
|
item_resource_cost.put(resource_type, resource_value); |
|
|
|
|
} |
|
|
|
|