From 4ac45c36f9a614da0cbb05e86279d1820d8c4e40 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sun, 12 Mar 2023 03:46:33 -0400 Subject: [PATCH] Fix config --- patches/server/0002-Leaf-Config.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/server/0002-Leaf-Config.patch b/patches/server/0002-Leaf-Config.patch index e1eb7f09e..9a649fe42 100644 --- a/patches/server/0002-Leaf-Config.patch +++ b/patches/server/0002-Leaf-Config.patch @@ -64,7 +64,7 @@ index 1141b3a88e2eb1baa705b4f781353df0305a7c85..b104a38d2c879b649a3862876c389564 this.setFlightAllowed(dedicatedserverproperties.allowFlight); diff --git a/src/main/java/org/dreeam/leaf/LeafConfig.java b/src/main/java/org/dreeam/leaf/LeafConfig.java new file mode 100644 -index 0000000000000000000000000000000000000000..511bc2175c4f25723bfdf59ae0ecb20e6fff1956 +index 0000000000000000000000000000000000000000..b3eef4b3619255f1f6084c2985b0fe242d25cc34 --- /dev/null +++ b/src/main/java/org/dreeam/leaf/LeafConfig.java @@ -0,0 +1,167 @@ @@ -210,11 +210,11 @@ index 0000000000000000000000000000000000000000..511bc2175c4f25723bfdf59ae0ecb20e + } + + static Map getMap(String key, Map defaultValue) { -+ if (defaultValue != null && config.getConfigurationSection(key) == null) { ++ if (defaultValue != null && getConfigCopy().getConfigurationSection(key) == null) { + config.addDefault(key, defaultValue); + return defaultValue; + } -+ return toMap(convertToBukkit(config.getConfigurationSection(key))); ++ return toMap(getConfigCopy().getConfigurationSection(key)); + } + + private static Map toMap(ConfigurationSection section) {