From f30f7cb4abb07139c6b4f89aed8f4b6abc91d03f Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 18 Mar 2013 14:24:07 -0700 Subject: [PATCH] Change placement of ChunkDataEvent.Save call to apply before sending to worker thread. --- .../world/chunk/storage/AnvilChunkLoader.java.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/chunk/storage/AnvilChunkLoader.java.patch b/patches/minecraft/net/minecraft/world/chunk/storage/AnvilChunkLoader.java.patch index e401e5b002..de73f61c45 100644 --- a/patches/minecraft/net/minecraft/world/chunk/storage/AnvilChunkLoader.java.patch +++ b/patches/minecraft/net/minecraft/world/chunk/storage/AnvilChunkLoader.java.patch @@ -17,11 +17,11 @@ return chunk; } } -@@ -123,6 +126,7 @@ +@@ -122,6 +125,7 @@ + NBTTagCompound nbttagcompound1 = new NBTTagCompound(); nbttagcompound.setTag("Level", nbttagcompound1); this.writeChunkToNBT(par2Chunk, par1World, nbttagcompound1); - this.func_75824_a(par2Chunk.getChunkCoordIntPair(), nbttagcompound); + MinecraftForge.EVENT_BUS.post(new ChunkDataEvent.Save(par2Chunk, nbttagcompound)); + this.func_75824_a(par2Chunk.getChunkCoordIntPair(), nbttagcompound); } catch (Exception exception) - {