diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index 67d30f2b..a96686c2 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -97,7 +97,7 @@ public enum BuildingManager { return buildingLocation; } - public static void refreshHirelingSlots(Building building) { + public static void updateHirelingSlots(Building building) { // Method updates all hirelings with the slot locations // for the current mesh. The position and region can change @@ -414,7 +414,10 @@ public enum BuildingManager { } + // Update hireling guilds and locations + updateHirelingGuilds(building); + updateHirelingSlots(building); } public static Building getBuilding(int id) { @@ -805,7 +808,7 @@ public enum BuildingManager { 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)) { building.rank = rank; @@ -823,7 +826,7 @@ public enum BuildingManager { 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 (rank == -1)