SteamWar/BauSystem2.0
Archiviert
12
0

Fix BackupScheduler running to early

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-05 19:42:13 +02:00
Ursprung f677ac23c0
Commit 01925ff122

Datei anzeigen

@ -39,7 +39,7 @@ public class BackupScheduler implements Enable {
final Iterator<Region> regions = Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator(); final Iterator<Region> regions = Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator();
BackupScheduler.this.doBackup(regions); BackupScheduler.this.doBackup(regions);
} }
}.runTaskTimer(BauSystem.getInstance(), 0, 20*60*30); }.runTaskTimer(BauSystem.getInstance(), 20, 20*60*30);
} }
public void doBackup(final Iterator<Region> regionIterator) { public void doBackup(final Iterator<Region> regionIterator) {