Browse Source

Unused variable removed.

master
MagicBot 2 years ago
parent
commit
c596aa5a01
  1. 5
      src/engine/objects/Mine.java

5
src/engine/objects/Mine.java

@ -60,7 +60,6 @@ public class Mine extends AbstractGameObject { @@ -60,7 +60,6 @@ public class Mine extends AbstractGameObject {
private Zone parentZone;
private MineProduction mineType;
public boolean dirtyMine = false;
//flags 1: never been claimed (make active).
@ -491,7 +490,7 @@ try{ @@ -491,7 +490,7 @@ try{
if (mineBuilding.getRank() > 0) {
//never knocked down, let's just move on.
//hasn't been claimed since server start.
if (this.dirtyMine && this.lastClaimerID == 0 && (this.owningGuild == null || this.owningGuild.isErrant()))
if (this.lastClaimerID == 0 && (this.owningGuild == null || this.owningGuild.isErrant()))
return false;
this.setActive(false);
return true;
@ -530,8 +529,6 @@ try{ @@ -530,8 +529,6 @@ try{
return false;
}
this.dirtyMine = false;
mineBuilding.rebuildMine();
WorldGrid.updateObject(mineBuilding);
ChatManager.chatSystemChannel(claimer.getName() + " has claimed the mine in " + this.parentZone.getParent().getName() + " for " + this.owningGuild.getName() + ". The mine is no longer active.");

Loading…
Cancel
Save