Every building does not need a rebuild mine method.

This commit is contained in:
2023-10-18 11:21:29 -04:00
parent 88f67efd51
commit 44743b772b
3 changed files with 13 additions and 13 deletions
+1 -12
View File
@@ -89,7 +89,7 @@ public class Building extends AbstractWorldObject {
private int maxGold;
private int effectFlags = 0;
private String name = "";
private int rank;
public int rank;
private boolean ownerIsNPC = true;
private boolean spireIsActive = false;
private ConcurrentHashMap<String, JobContainer> timers = null;
@@ -954,17 +954,6 @@ public class Building extends AbstractWorldObject {
}
public final void rebuildMine() {
this.setRank(1);
this.meshUUID = this.getBlueprint().getMeshForRank(this.rank);
// New rank mean new max hit points.
this.healthMax = this.getBlueprint().getMaxHealth(this.rank);
this.setCurrentHitPoints(this.healthMax);
this.getBounds().setBounds(this);
}
public final void refreshGuild() {
UpdateObjectMsg uom = new UpdateObjectMsg(this, 5);