mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 10:35:15 +01:00
Actually return the block that the sign is attached to
This commit is contained in:
parent
f5b3aa6b75
commit
640364e7e7
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user