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

@@ -47,12 +47,11 @@ public class CraftWorld implements World {
}
public void preserveChunk( CraftChunk chunk ) {
chunk.breakLink();
unloadedChunks.put( chunk.getX() << 16 + chunk.getZ(), chunk );
unloadedChunks.put( (chunk.getX() << 16) + chunk.getZ(), chunk );
}
public CraftChunk popPreservedChunk( int x, int z ) {
return unloadedChunks.remove( x << 16 + z );
return unloadedChunks.remove( (x << 16) + z );
}
public Block getBlockAt(int x, int y, int z) {