Permalink
Browse files

Specifically exclude wall signs due to Minecraft bug

  • Loading branch information...
me4502 committed Dec 10, 2018
1 parent 1e508d8 commit 91ff25e8cbb98f6af1b52f26b15f4c78ff6a0d48
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/sk89q/craftbook/mechanics/Elevator.java
@@ -34,6 +34,7 @@
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.Tag;
import org.bukkit.block.Block;
@@ -334,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()) {
if (!floor.getType().isSolid() || floor.getType() == Material.WALL_SIGN) {
foundFree++;
} else {
foundGround = true;

0 comments on commit 91ff25e

Please sign in to comment.