mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 04:25:14 +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) {
|
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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user