From e506c14eb4bfb5404269a620582c1d5ae252a251 Mon Sep 17 00:00:00 2001 From: Konicai <71294714+Konicai@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:30:44 -0500 Subject: [PATCH] Better check for ignoring non-configurate configs for considering comment moving --- .../java/org/geysermc/geyser/configuration/ConfigLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/configuration/ConfigLoader.java b/core/src/main/java/org/geysermc/geyser/configuration/ConfigLoader.java index 844c3f8f0..e8e205275 100644 --- a/core/src/main/java/org/geysermc/geyser/configuration/ConfigLoader.java +++ b/core/src/main/java/org/geysermc/geyser/configuration/ConfigLoader.java @@ -133,7 +133,7 @@ public final class ConfigLoader { if (originallyEmpty || currentVersion != newVersion) { - if (!originallyEmpty && currentVersion != 4) { + if (!originallyEmpty && currentVersion > 4) { // Only copy comments over if the file already existed, and we are going to replace it // Second case: Version 4 is pre-configurate where there were commented out nodes.