Actually return the block that the sign is attached to

This commit is contained in:
Phoenix616 2018-08-29 20:59:50 +01:00
parent f5b3aa6b75
commit 640364e7e7

View File

@ -60,7 +60,7 @@ public class BlockUtil {
if (blockData instanceof WallSign) { if (blockData instanceof WallSign) {
direction = ((Directional) blockData).getFacing().getOppositeFace(); direction = ((Directional) blockData).getFacing().getOppositeFace();
} else if (blockData instanceof Sign) { } else if (blockData instanceof Sign) {
direction = getMajorDirection(((Rotatable) blockData).getRotation().getOppositeFace()); direction = BlockFace.DOWN;
} else { } else {
throw new IllegalArgumentException("Cannot get direction of " + blockData.getClass().getSimpleName()); throw new IllegalArgumentException("Cannot get direction of " + blockData.getClass().getSimpleName());
} }