From c78111ca2ca12030e7c1a37c8d3461fb7e50e418 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 28 Dec 2021 08:10:38 +0000 Subject: [PATCH] Fix migration logic for old player saving config option This is an ode to all those times when you shoulda just gone to bed --- patches/server/Upstream-config-migrations.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/server/Upstream-config-migrations.patch b/patches/server/Upstream-config-migrations.patch index f55f78a2ec..8bd5da5a8f 100644 --- a/patches/server/Upstream-config-migrations.patch +++ b/patches/server/Upstream-config-migrations.patch @@ -19,8 +19,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + Object val = config.get("settings.save-player-data"); + if (val instanceof Boolean) { + SpigotConfig.disablePlayerDataSaving = !(Boolean) val; -+ SpigotConfig.config.set("players.disable-saving", SpigotConfig.disableAdvancementSaving); ++ SpigotConfig.config.set("players.disable-saving", SpigotConfig.disablePlayerDataSaving); + SpigotConfig.save(); ++ config.set("settings.save-player-data", null); + } + } +