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

@@ -209,6 +209,8 @@ public class ChunkProviderServer implements IChunkProvider
ChunkUnloadEvent cue = new ChunkUnloadEvent(Type.CHUNK_UNLOADED, chunk.bukkitChunk);
server.getPluginManager().callEvent(cue);
if (!cue.isCancelled()) {
g.getWorld().preserveChunk( (CraftChunk) chunk.bukkitChunk );
chunk.e();
this.b(chunk);
this.a(chunk);