Update chunk handling.

This commit is contained in:
Erik Broes
2011-02-01 23:49:28 +01:00
parent 21b8ef4435
commit 1dac92a766
6 changed files with 695 additions and 203 deletions

View File

@@ -80,9 +80,7 @@ public class ChunkProviderServer implements IChunkProvider {
* the World constructor. We can't reliably alter that, so we have
* no way of creating a CraftWorld/CraftServer at that point.
*/
CraftWorld world = g.getWorld();
CraftChunk cchunk = world.updateChunk(i, j);
server.getPluginManager().callEvent(new ChunkLoadEvent(Type.CHUNK_LOADED, cchunk));
server.getPluginManager().callEvent(new ChunkLoadEvent(Type.CHUNK_LOADED, chunk.bukkitChunk));
}
// CraftBukkit end