Clean up some stray 128 values and update the defaults

This commit is contained in:
zml2008
2012-03-01 20:47:19 -08:00
parent 87e40141c6
commit 373e4b90c9
5 changed files with 74 additions and 74 deletions

View File

@@ -77,7 +77,7 @@ public abstract class LocalPlayer {
byte free = 0;
while (y <= 129) {
while (y <= world.getMaxY() + 2) {
if (BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
++free;
} else {
@@ -142,7 +142,7 @@ public abstract class LocalPlayer {
byte free = 0;
byte spots = 0;
while (y <= 129) {
while (y <= world.getMaxY() + 2) {
if (BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
++free;
} else {
@@ -266,7 +266,7 @@ public abstract class LocalPlayer {
int maxY = Math.min(getWorld().getMaxY() + 1, initialY + distance);
LocalWorld world = getPosition().getWorld();
while (y <= 129) {
while (y <= world.getMaxY() + 2) {
if (!BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
break; // Hit something
} else if (y > maxY + 1) {