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
1 changed files with 1 additions and 1 deletions

View File

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