Fix BackupScheduler running to early
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
f677ac23c0
Commit
01925ff122
@ -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) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren