Browse Source

Warehouse loading work.

combat-2
MagicBot 8 months ago
parent
commit
98c5b0e9ec
  1. 4
      src/engine/objects/Warehouse.java

4
src/engine/objects/Warehouse.java

@ -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");

Loading…
Cancel
Save