Initial rudimentary implementation (not done) of PlotRegionBackups

This commit is contained in:
2026-03-08 08:19:46 +01:00
parent 12af4d0af1
commit 1d42f04e9a
4 changed files with 98 additions and 14 deletions
@@ -101,7 +101,7 @@ public class FixedRegion implements Region {
@Nullable
@Override
public Backup get(String name) {
public Backup get(@NonNull String name) {
final File definedBackupFolder = new File(new File(backupFolder, prototype.getName()), FixedRegion.this.name);
//noinspection ResultOfMethodCallIgnored
definedBackupFolder.mkdirs();
@@ -116,7 +116,7 @@ public class FixedRegion implements Region {
private final File file;
public BackupImpl(File file) {
super(RegionBackups.BackupType.AUTOMATIC, file.getName().replace(' ', '_').replace(".schem", ""), flagStorage);
super(RegionBackups.BackupType.AUTOMATIC, file.getName().replace(' ', '_').replace(".schem", ""), __ -> flagStorage);
this.file = file;
}