Second part of NPE and arctan update :3

This commit is contained in:
VictorD
2011-02-20 23:22:28 +01:00
parent cec04a7360
commit bf9a55049e
7 changed files with 34 additions and 19 deletions

View File

@@ -6,6 +6,8 @@ import java.util.List;
import java.util.Map;
import java.util.Random;
import org.bukkit.craftbukkit.CraftWorld;
public class Chunk {
public static boolean a;
@@ -44,7 +46,8 @@ public class Chunk {
}
// CraftBukkit start
bukkitChunk = ((WorldServer) world).getWorld().popPreservedChunk( i, j );
CraftWorld cw = ((WorldServer) world).getWorld();
bukkitChunk = (cw == null) ? null:cw.popPreservedChunk( i, j );
if (bukkitChunk == null) {
bukkitChunk = new org.bukkit.craftbukkit.CraftChunk( this );
}