From 40d27c7ee6851c6cd189c3439e6fa041e8464c6a Mon Sep 17 00:00:00 2001 From: boubou19 Date: Thu, 21 May 2026 15:48:32 +0200 Subject: [PATCH] Do not ignore the `fml.doNotBackup` property --- .../chunk/internal/DataRegistryImpl.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/falsepattern/chunk/internal/DataRegistryImpl.java b/src/main/java/com/falsepattern/chunk/internal/DataRegistryImpl.java index 00d3399..ebbb1f7 100644 --- a/src/main/java/com/falsepattern/chunk/internal/DataRegistryImpl.java +++ b/src/main/java/com/falsepattern/chunk/internal/DataRegistryImpl.java @@ -413,11 +413,14 @@ public static void readLevelDat(NBTTagCompound tag) { 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(); + } } } }