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 {
private Zone parentZone; private Zone parentZone;
private MineProduction mineType; private MineProduction mineType;
public boolean dirtyMine = false;
//flags 1: never been claimed (make active). //flags 1: never been claimed (make active).
@ -491,7 +490,7 @@ try{
if (mineBuilding.getRank() > 0) { if (mineBuilding.getRank() > 0) {
//never knocked down, let's just move on. //never knocked down, let's just move on.
//hasn't been claimed since server start. //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; return false;
this.setActive(false); this.setActive(false);
return true; return true;
@ -530,8 +529,6 @@ try{
return false; return false;
} }
this.dirtyMine = false;
mineBuilding.rebuildMine(); mineBuilding.rebuildMine();
WorldGrid.updateObject(mineBuilding); 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."); 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