From 98c5b0e9ec15bb5e3deaac3f5010443bb9ff170b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Mar 2024 11:06:56 -0400 Subject: [PATCH] Warehouse loading work. --- src/engine/objects/Warehouse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Warehouse.java b/src/engine/objects/Warehouse.java index 1230ccb6..d896d7a7 100644 --- a/src/engine/objects/Warehouse.java +++ b/src/engine/objects/Warehouse.java @@ -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");