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

This commit is contained in:
sk89q 2011-01-12 08:59:02 -08:00
parent 1cadc5d7f6
commit 1397c1de4c

View File

@ -176,10 +176,10 @@ public class HMPlayer extends LocalPlayer {
if (searchDist > 20) {
return false;
}
if (block.getType() == 0) {
if (BlockType.canPassThrough(block.getType())) {
if (foundNext) {
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));
return true;
}