Browse Source

Refactor warehouse part two.

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

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

@ -112,7 +112,7 @@ public class dbWarehouseHandler extends dbHandlerBase { @@ -112,7 +112,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
int cityUID = rs.getInt("cityUID");
JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template"));
City city = City.getCity(cityUID);
Warehouse warehouse = new Warehouse(jsonObject);
city.warehouse = new Warehouse(jsonObject);
}
} catch (Exception e) {

Loading…
Cancel
Save