forked from MagicBane/Server
Warehouse deleted from db
This commit is contained in:
@@ -132,8 +132,8 @@ public class RemoveObjectCmd extends AbstractDevCmd {
|
||||
if ((building.getBlueprint() != null) && (building.getBlueprint().getBuildingGroup() == BuildingGroup.WAREHOUSE)) {
|
||||
City city = City.getCity(building.getParentZone().playerCityUUID);
|
||||
|
||||
if (city != null)
|
||||
city.warehouse = null;
|
||||
DbManager.WarehouseQueries.DELETE_WAREHOUSE(city.warehouse);
|
||||
city.warehouse = null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user