From f36d05a639828ddd29e9d11b74146dda0768ff19 Mon Sep 17 00:00:00 2001 From: Robotia Date: Sat, 12 Mar 2016 21:36:35 -0500 Subject: [PATCH] Trying to revive RAM chunks --- .../net/minecraft/world/chunk/storage/RegionFile.java.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/net/minecraft/world/chunk/storage/RegionFile.java.patch b/patches/net/minecraft/world/chunk/storage/RegionFile.java.patch index b7d15126..66462ff5 100644 --- a/patches/net/minecraft/world/chunk/storage/RegionFile.java.patch +++ b/patches/net/minecraft/world/chunk/storage/RegionFile.java.patch @@ -11,7 +11,7 @@ import java.util.zip.DeflaterOutputStream; import java.util.zip.GZIPInputStream; import java.util.zip.InflaterInputStream; -@@ -16,359 +19,524 @@ +@@ -16,359 +19,526 @@ public class RegionFile { @@ -809,6 +809,8 @@ + if(this.dataBuffer != null) + { + this.dataBuffer.force(); ++ this.dataFile.seek(0L); ++ this.dataFile.write(dataBuffer.array()); + } + dataBuffer = null; + }