Merge remote-tracking branch 'origin/master'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Commit
eda164023f
@ -48,8 +48,10 @@ public class BackupScheduler implements Enable, Disable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void disable() {
|
public void disable() {
|
||||||
final Iterator<Region> regions = Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator();
|
Region.getREGION_MAP().values().stream().filter(region -> region.get(Tag.CHANGED)).iterator().forEachRemaining(region -> {
|
||||||
BackupScheduler.this.doBackup(regions);
|
region.backup();
|
||||||
|
region.remove(Tag.CHANGED);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doBackup(final Iterator<Region> regionIterator) {
|
public void doBackup(final Iterator<Region> regionIterator) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren