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

This commit is contained in:
Mike Primm
2012-03-01 15:13:53 -06:00
committed by EvilSeph
parent efc9ced128
commit 82f2a2e773
7 changed files with 15 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ public class CraftWorld implements World {
}
public Block getBlockAt(int x, int y, int z) {
return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0x7F, z & 0xF);
return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0xFF, z & 0xF);
}
public int getBlockTypeIdAt(int x, int y, int z) {
@@ -224,7 +224,7 @@ public class CraftWorld implements World {
for (int xx = px; xx < (px + 16); xx++) {
world.notify(xx, 0, pz);
}
world.notify(px, 127, pz + 15);
world.notify(px, 255, pz + 15);
return true;
}