Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
07d8b7383a
Commit
b8b50987d1
@ -61,6 +61,9 @@ public class BlockRotatingBehaviour implements SmartPlaceBehaviour {
|
|||||||
block.setType(event.getMaterial());
|
block.setType(event.getMaterial());
|
||||||
blockData = event.getItem().getType().createBlockData();
|
blockData = event.getItem().getType().createBlockData();
|
||||||
BlockFace blockFace = event.getBlockFace();
|
BlockFace blockFace = event.getBlockFace();
|
||||||
|
if ((blockFace == BlockFace.UP || blockFace == BlockFace.DOWN) && blockData instanceof Directional) {
|
||||||
|
blockFace = event.getPlayer().getFacing().getOppositeFace();
|
||||||
|
}
|
||||||
if (block.getType() == Material.HOPPER || block.getType() == Material.OBSERVER) {
|
if (block.getType() == Material.HOPPER || block.getType() == Material.OBSERVER) {
|
||||||
blockFace = blockFace.getOppositeFace();
|
blockFace = blockFace.getOppositeFace();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren