/thru should now treat torches and such as pass-through blocks.

Dieser Commit ist enthalten in:
sk89q 2011-01-12 08:59:02 -08:00
Ursprung 1cadc5d7f6
Commit 1397c1de4c

Datei anzeigen

@ -176,10 +176,10 @@ public class HMPlayer extends LocalPlayer {
if (searchDist > 20) { if (searchDist > 20) {
return false; return false;
} }
if (block.getType() == 0) { if (BlockType.canPassThrough(block.getType())) {
if (foundNext) { if (foundNext) {
Vector v = new Vector(block.getX(), block.getY() - 1, block.getZ()); Vector v = new Vector(block.getX(), block.getY() - 1, block.getZ());
if (world.getBlockType(v) == 0) { if (BlockType.canPassThrough(world.getBlockType(v))) {
setPosition(v.add(0.5, 0, 0.5)); setPosition(v.add(0.5, 0, 0.5));
return true; return true;
} }