Browse Source

Warehouse deleted from db

combat-2
MagicBot 8 months ago
parent
commit
756e20633f
  1. 4
      src/engine/devcmd/cmds/RemoveObjectCmd.java

4
src/engine/devcmd/cmds/RemoveObjectCmd.java

@ -132,8 +132,8 @@ public class RemoveObjectCmd extends AbstractDevCmd {
if ((building.getBlueprint() != null) && (building.getBlueprint().getBuildingGroup() == BuildingGroup.WAREHOUSE)) { if ((building.getBlueprint() != null) && (building.getBlueprint().getBuildingGroup() == BuildingGroup.WAREHOUSE)) {
City city = City.getCity(building.getParentZone().playerCityUUID); City city = City.getCity(building.getParentZone().playerCityUUID);
if (city != null) DbManager.WarehouseQueries.DELETE_WAREHOUSE(city.warehouse);
city.warehouse = null; city.warehouse = null;
} }

Loading…
Cancel
Save