World height related fixes - 128 -> 256. Addresses BUKKIT-889

By: Mike Primm <mike@primmhome.com>
This commit is contained in:
CraftBukkit/Spigot
2012-03-01 15:13:53 -06:00
parent e38356b5ba
commit 02109efbfc
5 changed files with 11 additions and 11 deletions

View File

@@ -69,7 +69,7 @@ public class CraftChunk implements Chunk {
}
public Block getBlock(int x, int y, int z) {
return new CraftBlock(this, (getX() << 4) | (x & 0xF), y & 0x7F, (getZ() << 4) | (z & 0xF));
return new CraftBlock(this, (getX() << 4) | (x & 0xF), y & 0xFF, (getZ() << 4) | (z & 0xF));
}
public Entity[] getEntities() {