mirror of
https://github.com/LegacyModdingMC/ChunkAPI.git
synced 2026-11-13 00:47:31 +00:00
Do not ignore the fml.doNotBackup property
This commit is contained in:
1 parent
d7b4afe9c3
commit
40d27c7ee6
1 file changed
+8
-5
@@ -413,11 +413,14 @@ public class DataRegistryImpl {
|
||||
StartupQuery.abort();
|
||||
}
|
||||
|
||||
try {
|
||||
ZipperUtil.backupWorld();
|
||||
} catch (IOException e) {
|
||||
StartupQuery.notify("The world backup couldn't be created.\n\n" + e);
|
||||
StartupQuery.abort();
|
||||
String skip = System.getProperty("fml.doNotBackup");
|
||||
if (skip == null || !"true".equals(skip)) {
|
||||
try {
|
||||
ZipperUtil.backupWorld();
|
||||
} catch (IOException e) {
|
||||
StartupQuery.notify("The world backup couldn't be created.\n\n" + e);
|
||||
StartupQuery.abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user