Skip to content
Permalink
Browse files

Add another workaround for signs blocking Elevator/Teleporter

  • Loading branch information
me4502 committed Dec 23, 2019
1 parent bd77544 commit d29bd150568ae9d706f7227955683f4b596af855
@@ -335,7 +335,7 @@ private void makeItSo(CraftBookPlayer player, Block destination, BlockFace shift
int foundFree = 0;
boolean foundGround = false;
for (int i = 0; i < 5; i++) {
if (!floor.getType().isSolid() || SignUtil.isWallSign(floor)) {
if (!floor.getType().isSolid() || SignUtil.isSign(floor)) {
foundFree++;
} else {
foundGround = true;
@@ -187,7 +187,7 @@ private void makeItSo(CraftBookPlayer player, Block trigger) {
// or until we're 5 blocks away, which we consider too far.
int foundFree = 0;
for (int i = 0; i < 5; i++) {
if (!floor.getType().isSolid())
if (!floor.getType().isSolid() || SignUtil.isSign(floor))
foundFree++;
else
break;

0 comments on commit d29bd15

Please sign in to comment.
You can’t perform that action at this time.