|
|
@ -97,7 +97,7 @@ public enum BuildingManager { |
|
|
|
return buildingLocation; |
|
|
|
return buildingLocation; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void refreshHirelingSlots(Building building) { |
|
|
|
public static void updateHirelingSlots(Building building) { |
|
|
|
|
|
|
|
|
|
|
|
// Method updates all hirelings with the slot locations
|
|
|
|
// Method updates all hirelings with the slot locations
|
|
|
|
// for the current mesh. The position and region can change
|
|
|
|
// for the current mesh. The position and region can change
|
|
|
@ -414,7 +414,10 @@ public enum BuildingManager { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update hireling guilds and locations
|
|
|
|
|
|
|
|
|
|
|
|
updateHirelingGuilds(building); |
|
|
|
updateHirelingGuilds(building); |
|
|
|
|
|
|
|
updateHirelingSlots(building); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Building getBuilding(int id) { |
|
|
|
public static Building getBuilding(int id) { |
|
|
@ -805,7 +808,7 @@ public enum BuildingManager { |
|
|
|
boolean success; |
|
|
|
boolean success; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If this building has no blueprint then set rank and exit immediatly.
|
|
|
|
// If this building has no blueprint then set rank and exit immediately.
|
|
|
|
|
|
|
|
|
|
|
|
if (building.blueprintUUID == 0 || building.getBlueprint() != null && building.getBlueprint().getBuildingGroup().equals(BuildingGroup.MINE)) { |
|
|
|
if (building.blueprintUUID == 0 || building.getBlueprint() != null && building.getBlueprint().getBuildingGroup().equals(BuildingGroup.MINE)) { |
|
|
|
building.rank = rank; |
|
|
|
building.rank = rank; |
|
|
@ -823,7 +826,7 @@ public enum BuildingManager { |
|
|
|
Logger.error("failed to cancel existing upgrade job."); |
|
|
|
Logger.error("failed to cancel existing upgrade job."); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Attempt write to database, or delete the building
|
|
|
|
// Attempt to write to database, or delete the building
|
|
|
|
// if we are destroying it.
|
|
|
|
// if we are destroying it.
|
|
|
|
|
|
|
|
|
|
|
|
if (rank == -1) |
|
|
|
if (rank == -1) |
|
|
|