From 2271d88dc1bc213be0854a5c223b8d999e00455d Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Wed, 11 Nov 2020 22:58:42 -0600 Subject: [PATCH] Fix per-world settings not reloading (#4756) --- Spigot-Server-Patches/Paper-config-files.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Paper-config-files.patch b/Spigot-Server-Patches/Paper-config-files.patch index 6b766d1e4..fa3f99d58 100644 --- a/Spigot-Server-Patches/Paper-config-files.patch +++ b/Spigot-Server-Patches/Paper-config-files.patch @@ -479,7 +479,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + private final String worldName; + private final SpigotWorldConfig spigotConfig; -+ private final YamlConfiguration config; ++ private YamlConfiguration config; + private boolean verbose; + + public PaperWorldConfig(String worldName, SpigotWorldConfig spigotConfig) { @@ -490,6 +490,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + } + + public void init() { ++ this.config = PaperConfig.config; // grab updated reference + log("-------- World Settings For [" + worldName + "] --------"); + PaperConfig.readConfig(PaperWorldConfig.class, this); + }