forked from SteamWar/SteamWar
Initial rudimentary implementation (not done) of PlotRegionBackups
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user