|
|
|
@ -60,7 +60,7 @@ public class Warehouse {
@@ -60,7 +60,7 @@ public class Warehouse {
|
|
|
|
|
this.resources.put(resourceType, value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONArray lockedResources = (JSONArray) warehouse.get("locks"); |
|
|
|
|
JSONArray lockedResources = (JSONArray) warehouse.get("locked"); |
|
|
|
|
|
|
|
|
|
if (lockedResources.isEmpty() == false) |
|
|
|
|
for (Object o : lockedResources) |
|
|
|
@ -207,7 +207,6 @@ public class Warehouse {
@@ -207,7 +207,6 @@ public class Warehouse {
|
|
|
|
|
worked = DbManager.WarehouseQueries.UPDATE_WAREHOUSE(warehouse); |
|
|
|
|
|
|
|
|
|
if (worked) { |
|
|
|
|
warehouse.locked.add(resourceType); |
|
|
|
|
ViewResourcesMessage vrm = new ViewResourcesMessage(player); |
|
|
|
|
vrm.setGuild(player.getGuild()); |
|
|
|
|
vrm.setWarehouseBuilding(warehouseBuilding); |
|
|
|
|