|
|
|
@ -57,8 +57,8 @@ public class Warehouse {
@@ -57,8 +57,8 @@ public class Warehouse {
|
|
|
|
|
|
|
|
|
|
for (Object key : resources.keySet()) { |
|
|
|
|
Enum.ResourceType resourceType = Enum.ResourceType.valueOf((String) key); |
|
|
|
|
float value = ((Long) resources.get(key)).intValue(); |
|
|
|
|
resources.put(resourceType, value); |
|
|
|
|
int value = ((Long) resources.get(key)).intValue(); |
|
|
|
|
this.resources.put(resourceType, value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONArray lockedResources = (JSONArray) warehouse.get("locks"); |
|
|
|
|