Refresh method created.

This commit is contained in:
2024-02-04 08:23:54 -05:00
parent 3cf6bba0f4
commit d52bef8252
+6 -3
View File
@@ -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)