Browse Source

Added Mine Window Close Debug

NovaTest
kevin 3 months ago
parent
commit
f5bbc9eee0
  1. 8
      src/engine/workthreads/HourlyJobThread.java

8
src/engine/workthreads/HourlyJobThread.java

@ -133,7 +133,7 @@ public class HourlyJobThread implements Runnable { @@ -133,7 +133,7 @@ public class HourlyJobThread implements Runnable {
Building mineBuilding = BuildingManager.getBuildingFromCache(mine.getBuildingID());
if (mineBuilding == null) {
Logger.debug("Null mine building for Mine " + mine.getObjectUUID() + " Building " + mine.getBuildingID());
Logger.info("Null mine building for Mine " + mine.getObjectUUID() + " Building " + mine.getBuildingID());
return false;
}
@ -141,7 +141,7 @@ public class HourlyJobThread implements Runnable { @@ -141,7 +141,7 @@ public class HourlyJobThread implements Runnable {
// We can early exit here.
if (mineBuilding.getRank() > 0) {
Logger.debug("Mine still standing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
Logger.info("Mine still standing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
mine.setActive(false);
mine.lastClaimer = null;
@ -153,7 +153,7 @@ public class HourlyJobThread implements Runnable { @@ -153,7 +153,7 @@ public class HourlyJobThread implements Runnable {
// and keep the window open.
if (!Mine.validateClaimer(mine.lastClaimer)) {
Logger.debug("Mine has no valid claimer when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
Logger.info("Mine has no valid claimer when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
mine.lastClaimer = null;
mine.updateGuildOwner(null);
@ -163,7 +163,7 @@ public class HourlyJobThread implements Runnable { @@ -163,7 +163,7 @@ public class HourlyJobThread implements Runnable {
//Update ownership to map
Logger.debug("Mine ownership changing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID() + " new owning guild: " + mine.getOwningGuild().getObjectUUID());
Logger.info("Mine ownership changing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID() + " new owning guild: " + mine.getOwningGuild().getObjectUUID());
mine.guildName = mine.getOwningGuild().getName();
mine.guildTag = mine.getOwningGuild().getGuildTag();

Loading…
Cancel
Save