Merge remote-tracking branch 'GTNewHorizons/fix-backup' into dev

This commit is contained in:
FalsePattern committed 2026-05-21 23:43:57 +02:00
commit 18f7d15f3a
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();
}
}
}
}