mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Fix migration logic for old player saving config option
This is an ode to all those times when you shoulda just gone to bed
This commit is contained in:
parent
b63215914a
commit
c78111ca2c
@ -19,8 +19,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ Object val = config.get("settings.save-player-data");
|
+ Object val = config.get("settings.save-player-data");
|
||||||
+ if (val instanceof Boolean) {
|
+ if (val instanceof Boolean) {
|
||||||
+ SpigotConfig.disablePlayerDataSaving = !(Boolean) val;
|
+ SpigotConfig.disablePlayerDataSaving = !(Boolean) val;
|
||||||
+ SpigotConfig.config.set("players.disable-saving", SpigotConfig.disableAdvancementSaving);
|
+ SpigotConfig.config.set("players.disable-saving", SpigotConfig.disablePlayerDataSaving);
|
||||||
+ SpigotConfig.save();
|
+ SpigotConfig.save();
|
||||||
|
+ config.set("settings.save-player-data", null);
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user