aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch')
-rw-r--r--patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch b/patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch
index 6de737ae8f..e6c158e17d 100644
--- a/patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch
+++ b/patches/server/0677-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch
@@ -44,10 +44,10 @@ index f3d169436ce05f1c56599cfe15a56671b7d13516..4d5ab1771129114ef1e4745c43a4fd18
public void close() throws IOException {
ByteBuffer bytebuffer = ByteBuffer.wrap(this.buf, 0, this.count);
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/RegionFileStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/RegionFileStorage.java
-index eeccc924dbba6f860245611eb943c9219471f670..c3bf911a76373dcd1c345a3091adefb0e550fd18 100644
+index 480dc0dc8892004edf00b51f57fc639e839453fa..0b17369dda00b415ed15c7215f222b891a1dc2ee 100644
--- a/src/main/java/net/minecraft/world/level/chunk/storage/RegionFileStorage.java
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/RegionFileStorage.java
-@@ -241,10 +241,17 @@ public class RegionFileStorage implements AutoCloseable {
+@@ -246,10 +246,17 @@ public class RegionFileStorage implements AutoCloseable {
try {
NbtIo.write(nbt, (DataOutput) dataoutputstream);
@@ -66,7 +66,7 @@ index eeccc924dbba6f860245611eb943c9219471f670..c3bf911a76373dcd1c345a3091adefb0
} catch (Throwable throwable1) {
throwable.addSuppressed(throwable1);
}
-@@ -252,10 +259,7 @@ public class RegionFileStorage implements AutoCloseable {
+@@ -257,10 +264,7 @@ public class RegionFileStorage implements AutoCloseable {
throw throwable;
}
@@ -77,8 +77,8 @@ index eeccc924dbba6f860245611eb943c9219471f670..c3bf911a76373dcd1c345a3091adefb0
+ // Paper - don't write garbage data to disk if writing serialization fails; move into try block to only write if successfully serialized
}
// Paper start - Chunk save reattempt
- return;
-@@ -301,4 +305,13 @@ public class RegionFileStorage implements AutoCloseable {
+ return;
+@@ -307,4 +311,13 @@ public class RegionFileStorage implements AutoCloseable {
}
}