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 {
for (Object key : resources.keySet()) { for (Object key : resources.keySet()) {
Enum.ResourceType resourceType = Enum.ResourceType.valueOf((String) key); Enum.ResourceType resourceType = Enum.ResourceType.valueOf((String) key);
float value = ((Long) resources.get(key)).intValue(); int value = ((Long) resources.get(key)).intValue();
resources.put(resourceType, value); this.resources.put(resourceType, value);
} }
JSONArray lockedResources = (JSONArray) warehouse.get("locks"); JSONArray lockedResources = (JSONArray) warehouse.get("locks");

Loading…
Cancel
Save