Browse Source

catch process mine window logic

lakebane-master
FatBoy-DOTC 5 months ago
parent
commit
6d68d048b0
  1. 4
      src/engine/objects/Mine.java

4
src/engine/objects/Mine.java

@ -664,6 +664,7 @@ public class Mine extends AbstractGameObject { @@ -664,6 +664,7 @@ public class Mine extends AbstractGameObject {
public static void processMineWindows() {
LocalDateTime currentTime = LocalDateTime.now();
for (Mine mine : Mine.getMines()) {
try {
Building tower = BuildingManager.getBuildingFromCache(mine.getBuildingID());
//if the tower comes back null, skip this mine
if (tower == null)
@ -693,6 +694,9 @@ public class Mine extends AbstractGameObject { @@ -693,6 +694,9 @@ public class Mine extends AbstractGameObject {
ChatManager.chatSystemChannel(tower.getGuild().getNation().getName() + " has successfully defended the " + mine.getParentZone().getName() + " " + mine.getMineType() + " MINE, and retains their claim.");
}
}
} catch (Exception ex) {
Logger.error("Mine Failed: " + mine.getObjectUUID() + " " + ex.getMessage());
}
}
}
}

Loading…
Cancel
Save