From f6529ecf328a8b859c9797336594bf0f393aaac8 Mon Sep 17 00:00:00 2001 From: stijnb1234 Date: Sun, 2 Feb 2020 16:21:26 +0100 Subject: [PATCH] Removed sign check to support other Directional blocks --- src/main/java/nl/SBDeveloper/V10Lift/Utils/DirectionUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/nl/SBDeveloper/V10Lift/Utils/DirectionUtil.java b/src/main/java/nl/SBDeveloper/V10Lift/Utils/DirectionUtil.java index 4216ce3..5c0168c 100644 --- a/src/main/java/nl/SBDeveloper/V10Lift/Utils/DirectionUtil.java +++ b/src/main/java/nl/SBDeveloper/V10Lift/Utils/DirectionUtil.java @@ -12,7 +12,7 @@ public class DirectionUtil { @Nullable public static BlockFace getDirection(@Nonnull Block block) { - if (block.getBlockData() instanceof Directional && block.getType().toString().contains("WALL_SIGN")) { + if (block.getBlockData() instanceof Directional) { Directional dir = (Directional) block.getBlockData(); return dir.getFacing(); } @@ -20,7 +20,7 @@ public class DirectionUtil { } public static void setDirection(@Nonnull Block block, BlockFace blockFace) { - if (block.getBlockData() instanceof Directional && block.getType().toString().contains("WALL_SIGN")) { + if (block.getBlockData() instanceof Directional) { BlockData bd = block.getBlockData(); Directional dir = (Directional) bd; dir.setFacing(blockFace);