Warehouse deleted from db
This commit is contained in:
1 parent
2e0ffe67fa
commit
12c1cde069
2 files changed
+16
-3
No files matched your search
@@ -425,9 +425,10 @@ public class Building extends AbstractWorldObject {
|
||||
|
||||
// Special handling of warehouses
|
||||
|
||||
if (blueprint.getBuildingGroup() == BuildingGroup.WAREHOUSE)
|
||||
if (city != null)
|
||||
city.setWarehouseBuildingID(0);
|
||||
if (blueprint.getBuildingGroup() == BuildingGroup.WAREHOUSE) {
|
||||
DbManager.WarehouseQueries.DELETE_WAREHOUSE(city.warehouse);
|
||||
city.warehouse = null;
|
||||
}
|
||||
|
||||
// Special handling of destroyed Spires
|
||||
|
||||
|
||||
Reference in new issue
Block a user