Browse Source

Refresh mine when destroyed.

master
MagicBot 2 years ago
parent
commit
d9352b6d34
  1. 10
      src/engine/objects/Mine.java

10
src/engine/objects/Mine.java

@ -515,6 +515,16 @@ try{ @@ -515,6 +515,16 @@ try{
DbManager.MineQueries.CHANGE_OWNER(this, 0);
// Update mesh
Building mineBuilding = BuildingManager.getBuildingFromCache(this.buildingID);
if (mineBuilding == null){
Logger.debug( "Null mine building " + this.getObjectUUID() +". Unable to Load Building with UID " +this.buildingID);
return;
}
WorldGrid.updateObject(mineBuilding);
// remove hirelings
Building building = (Building) getObject(Enum.GameObjectType.Building, this.buildingID);

Loading…
Cancel
Save