Hotfix SmartPlaceListener
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
247907e523
Commit
c24da5c7a6
@ -92,7 +92,7 @@ public class SmartPlaceListener implements Listener {
|
|||||||
block.setType(event.getMaterial());
|
block.setType(event.getMaterial());
|
||||||
BlockData blockData = event.getItem().getType().createBlockData();
|
BlockData blockData = event.getItem().getType().createBlockData();
|
||||||
BlockFace blockFace = event.getBlockFace();
|
BlockFace blockFace = event.getBlockFace();
|
||||||
if (block.getType() == Material.HOPPER) {
|
if (block.getType() == Material.HOPPER || block.getType() == Material.OBSERVER) {
|
||||||
blockFace = blockFace.getOppositeFace();
|
blockFace = blockFace.getOppositeFace();
|
||||||
}
|
}
|
||||||
if (blockData instanceof Directional) {
|
if (blockData instanceof Directional) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren