mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
/thru should now treat torches and such as pass-through blocks.
This commit is contained in:
parent
1cadc5d7f6
commit
1397c1de4c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user