|
|
@ -133,7 +133,7 @@ public class HourlyJobThread implements Runnable { |
|
|
|
Building mineBuilding = BuildingManager.getBuildingFromCache(mine.getBuildingID()); |
|
|
|
Building mineBuilding = BuildingManager.getBuildingFromCache(mine.getBuildingID()); |
|
|
|
|
|
|
|
|
|
|
|
if (mineBuilding == null) { |
|
|
|
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; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -141,7 +141,7 @@ public class HourlyJobThread implements Runnable { |
|
|
|
// We can early exit here.
|
|
|
|
// We can early exit here.
|
|
|
|
|
|
|
|
|
|
|
|
if (mineBuilding.getRank() > 0) { |
|
|
|
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.setActive(false); |
|
|
|
mine.lastClaimer = null; |
|
|
|
mine.lastClaimer = null; |
|
|
@ -153,7 +153,7 @@ public class HourlyJobThread implements Runnable { |
|
|
|
// and keep the window open.
|
|
|
|
// and keep the window open.
|
|
|
|
|
|
|
|
|
|
|
|
if (!Mine.validateClaimer(mine.lastClaimer)) { |
|
|
|
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.lastClaimer = null; |
|
|
|
mine.updateGuildOwner(null); |
|
|
|
mine.updateGuildOwner(null); |
|
|
@ -163,7 +163,7 @@ public class HourlyJobThread implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
//Update ownership to map
|
|
|
|
//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.guildName = mine.getOwningGuild().getName(); |
|
|
|
mine.guildTag = mine.getOwningGuild().getGuildTag(); |
|
|
|
mine.guildTag = mine.getOwningGuild().getGuildTag(); |
|
|
|