Browse Source

Setting city when loading

combat-2
MagicBot 8 months ago
parent
commit
b8bd71616b
  1. 1
      src/engine/db/handlers/dbWarehouseHandler.java

1
src/engine/db/handlers/dbWarehouseHandler.java

@ -115,6 +115,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("warehouse")); JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("warehouse"));
City city = City.getCity(cityUID); City city = City.getCity(cityUID);
city.warehouse = new Warehouse(jsonObject); city.warehouse = new Warehouse(jsonObject);
city.warehouse.city = city;
// Locate warehouse building // Locate warehouse building
for (Building building : city.parentZone.zoneBuildingSet) { for (Building building : city.parentZone.zoneBuildingSet) {

Loading…
Cancel
Save