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{ @@ -577,7 +577,7 @@ try{
PlayerCharacter claimer = PlayerCharacter.getFromCache(this.lastClaimerID);
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;
return false;
}
@ -591,7 +591,7 @@ try{ @@ -591,7 +591,7 @@ try{
// return false;
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;
return false;
}

Loading…
Cancel
Save