Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
262c08f64f
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing CraftBukkit Changes: 2ed3e3e6e SPIGOT-7210: Fix structures in custom worlds 585ab5ba1 SPIGOT-7207: WorldCreator creates world as super flat even when normal is specified
21 Zeilen
973 B
Diff
21 Zeilen
973 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Philip Kelley <philip@thoriumcube.org>
|
|
Date: Wed, 16 Mar 2022 12:05:59 +0000
|
|
Subject: [PATCH] Fix saving in unloadWorld
|
|
|
|
Change savingDisabled to false to ensure ServerLevel's saving logic gets called when unloadWorld is called with save = true
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
index 9b79c6e91c6526f902fb78102fa454027315fbf6..2534536d3ffcc4ac17d723e0d37c55a4bb5d0ec9 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -1316,7 +1316,7 @@ public final class CraftServer implements Server {
|
|
|
|
try {
|
|
if (save) {
|
|
- handle.save(null, true, true);
|
|
+ handle.save(null, true, false); // Paper - don't disable saving
|
|
}
|
|
|
|
handle.getChunkSource().close(save);
|