Do not ignore the fml.doNotBackup property

This commit is contained in:
boubou19 committed 2026-05-21 15:48:32 +02:00
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();
}
}
}
}