From d52bef8252c6b7143509949b27925c6da85dc3f5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 4 Feb 2024 08:23:54 -0500 Subject: [PATCH] Refresh method created. --- src/engine/gameManager/BuildingManager.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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)