Browse Source

Debugging isErrant()

master
MagicBot 2 years ago
parent
commit
efa504a714
  1. 3
      src/engine/objects/Mine.java
  2. 5
      src/engine/workthreads/HourlyJobThread.java

3
src/engine/objects/Mine.java

@ -100,6 +100,9 @@ public class Mine extends AbstractGameObject {
this.zoneName = "Unknown Mine"; this.zoneName = "Unknown Mine";
} }
if (ownerUID == 0)
ownerUID = ownerUID - 1 + 1;
this.owningGuild = Guild.getGuild(ownerUID); this.owningGuild = Guild.getGuild(ownerUID);
Guild nation = null; Guild nation = null;

5
src/engine/workthreads/HourlyJobThread.java

@ -102,9 +102,12 @@ public class HourlyJobThread implements Runnable {
for (Mine mine : mines) { for (Mine mine : mines) {
try { try {
int foo;
// Open Errant Mines // Open Errant Mines
if (mine.getBuildingID() == 1250)
foo = 1;
if (mine.getOwningGuild().isErrant()) { if (mine.getOwningGuild().isErrant()) {
mine.handleStartMineWindow(); mine.handleStartMineWindow();
Mine.setLastChange(System.currentTimeMillis()); Mine.setLastChange(System.currentTimeMillis());

Loading…
Cancel
Save