Browse Source

Loading of warehouse data

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

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

@ -109,8 +109,8 @@ public class dbWarehouseHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery()) { ResultSet rs = preparedStatement.executeQuery()) {
while (rs.next()) { while (rs.next()) {
int cityUID = rs.getInt("cityUID"); int cityUID = rs.getInt("cityUUID");
JSONObject jsonObject = (JSONObject) jsonParser.parse(rs.getString("template")); 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);
} }

Loading…
Cancel
Save