fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count

This commit is contained in:
Jacob Scott
2011-07-15 02:00:48 -05:00
parent 75660547d9
commit 66dcc99809
34 changed files with 365 additions and 312 deletions

View File

@@ -74,7 +74,7 @@ public abstract class LocalPlayer {
while (y <= 129) {
if (BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
free++;
++free;
} else {
free = 0;
}
@@ -87,7 +87,7 @@ public abstract class LocalPlayer {
return;
}
y++;
++y;
}
}
@@ -108,7 +108,7 @@ public abstract class LocalPlayer {
return;
}
y--;
--y;
}
}
@@ -139,13 +139,13 @@ public abstract class LocalPlayer {
while (y <= 129) {
if (BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
free++;
++free;
} else {
free = 0;
}
if (free == 2) {
spots++;
++spots;
if (spots == 2) {
int type = world.getBlockType(new Vector(x, y - 2, z));
@@ -159,7 +159,7 @@ public abstract class LocalPlayer {
}
}
y++;
++y;
}
return false;
@@ -181,7 +181,7 @@ public abstract class LocalPlayer {
while (y >= 1) {
if (BlockType.canPassThrough(world.getBlockType(new Vector(x, y, z)))) {
free++;
++free;
} else {
free = 0;
}
@@ -200,13 +200,13 @@ public abstract class LocalPlayer {
return true;
}
y--;
--y;
}
return false;
}
y--;
--y;
}
return false;
@@ -241,7 +241,7 @@ public abstract class LocalPlayer {
return true;
}
y++;
++y;
}
return false;
@@ -274,7 +274,7 @@ public abstract class LocalPlayer {
return true;
}
y++;
++y;
}
return false;
@@ -462,19 +462,19 @@ public abstract class LocalPlayer {
firstBlock = false;
if (!free) {
freeToFind--;
--freeToFind;
continue;
}
}
searchDist++;
++searchDist;
if (searchDist > 20) {
return false;
}
if (inFree != free) {
if (free) {
freeToFind--;
--freeToFind;
}
}