Browse Source

Reset time calculation updated.

master
MagicBot 2 years ago
parent
commit
4c10e01539
  1. 4
      src/engine/objects/Mine.java

4
src/engine/objects/Mine.java

@ -577,7 +577,7 @@ try{
PlayerCharacter claimer = PlayerCharacter.getFromCache(this.lastClaimerID); PlayerCharacter claimer = PlayerCharacter.getFromCache(this.lastClaimerID);
if (!validClaimer(claimer)){ if (!validClaimer(claimer)){
LocalDateTime resetTime = LocalDateTime.now().withDayOfMonth(LocalDateTime.now().getDayOfMonth()).withHour(LocalDateTime.now().getHour()).withMinute(0).withSecond(0).withNano(0); LocalDateTime resetTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0);
this.openDate = resetTime; this.openDate = resetTime;
return false; return false;
} }
@ -591,7 +591,7 @@ try{
// return false; // return false;
if (this.owningGuild == null || this.owningGuild.isErrant() || this.owningGuild.getNation().isErrant()){ if (this.owningGuild == null || this.owningGuild.isErrant() || this.owningGuild.getNation().isErrant()){
LocalDateTime resetTime = LocalDateTime.now().withDayOfMonth(LocalDateTime.now().getDayOfMonth()).withHour(LocalDateTime.now().getHour()).withMinute(0).withSecond(0).withNano(0); LocalDateTime resetTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0);
this.openDate = resetTime; this.openDate = resetTime;
return false; return false;
} }

Loading…
Cancel
Save