Browse Source

Refresh method created.

bugfix-slot-update-2
MagicBot 11 months ago
parent
commit
d52bef8252
  1. 9
      src/engine/gameManager/BuildingManager.java

9
src/engine/gameManager/BuildingManager.java

@ -97,7 +97,7 @@ public enum BuildingManager { @@ -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 { @@ -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 { @@ -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 { @@ -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)

Loading…
Cancel
Save