diff --git a/patches/server/1060-Write-SavedData-IO-async.patch b/patches/server/1060-Write-SavedData-IO-async.patch index 4acc2a1391e2..dc87646164c0 100644 --- a/patches/server/1060-Write-SavedData-IO-async.patch +++ b/patches/server/1060-Write-SavedData-IO-async.patch @@ -99,14 +99,14 @@ index f2a7cb6ebed7a4b4019a09af2a025f624f6fe9c9..77dd632a266f4abed30b87b7909d7785 WorldUpgrader.LOGGER.info("World optimizaton finished after {} ms", i); this.finished = true; diff --git a/src/main/java/net/minecraft/world/level/saveddata/SavedData.java b/src/main/java/net/minecraft/world/level/saveddata/SavedData.java -index 697df9a9f050c0130246ce2b08a859965bddf184..28c400ebe099e17159dd5d348bdcfd1f88eacb16 100644 +index 697df9a9f050c0130246ce2b08a859965bddf184..7a9bede28c7158f3cb9a9a5f4147156e44238935 100644 --- a/src/main/java/net/minecraft/world/level/saveddata/SavedData.java +++ b/src/main/java/net/minecraft/world/level/saveddata/SavedData.java @@ -29,22 +29,37 @@ public abstract class SavedData { return this.dirty; } -+ @io.papermc.paper.annotation.DoNotUse // Paper - Write SavedData IO async -This is dead ++ @io.papermc.paper.annotation.DoNotUse // Paper - Write SavedData IO async - This is dead public void save(File file) { + save(file, null).join(); // Paper - Write SavedData IO async - joining is evil, but we assume the old blocking behavior here just for safety + }