forked from MagicBane/Server
hard set mine windows
This commit is contained in:
@@ -80,8 +80,9 @@ public class HourlyJobThread implements Runnable {
|
||||
ArrayList<Mine> mines = Mine.getMines();
|
||||
|
||||
for (Mine mine : mines) {
|
||||
if (LocalDateTime.now().getHour() == 1400) {
|
||||
if (LocalDateTime.now().getHour() == 1) {
|
||||
mine.wasClaimed = false;
|
||||
mine.hasProduced = false;
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -95,7 +96,7 @@ public class HourlyJobThread implements Runnable {
|
||||
// Open Mines owned by nations having their WOO
|
||||
// set to the current mine window.
|
||||
|
||||
if (mine.getOwningGuild().getNation().getMineTime() ==
|
||||
if (mine.liveTime ==
|
||||
LocalDateTime.now().getHour() && mine.wasClaimed == false) {
|
||||
HourlyJobThread.mineWindowOpen(mine);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user