Prevent Blocks from getting lost when a chunk reloads

This commit is contained in:
Erik Broes committed 2011-02-20 17:09:38 +01:00
1 parent ca4076077e
commit 6e3ee31336
4 files changed
+21 -2

No files matched your search

@@ -44,7 +44,10 @@ public class Chunk {
}
// CraftBukkit start
bukkitChunk = new org.bukkit.craftbukkit.CraftChunk( this );
bukkitChunk = ((WorldServer) world).getWorld().popPreservedChunk( i, j );
if (bukkitChunk == null) {
bukkitChunk = new org.bukkit.craftbukkit.CraftChunk( this );
}
}
public org.bukkit.Chunk bukkitChunk;