Skip to content

Commit

Permalink
missing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicboy committed Jan 18, 2024
1 parent c9ed233 commit 82b7f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/1060-Write-SavedData-IO-async.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
+ }
Expand Down

0 comments on commit 82b7f9b

Please sign in to comment.