Browse Source

attempted warehouse delay issue resolution

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
b7ebb728e2
  1. 4
      src/engine/db/handlers/dbWarehouseHandler.java

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

@ -45,7 +45,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
list.add(building); list.add(building);
break; break;
case "warehouse": case "warehouse":
Warehouse warehouse = new Warehouse(rs, depositQueItem); Warehouse warehouse = new Warehouse(rs);
DbManager.addToCache(warehouse); DbManager.addToCache(warehouse);
list.add(warehouse); list.add(warehouse);
break; break;
@ -543,7 +543,7 @@ public class dbWarehouseHandler extends dbHandlerBase {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();
while (rs.next()) { while (rs.next()) {
warehouse = new Warehouse(rs, depositQueItem); warehouse = new Warehouse(rs);
warehouse.runAfterLoad(); warehouse.runAfterLoad();
warehouse.loadAllTransactions(); warehouse.loadAllTransactions();
} }

Loading…
Cancel
Save