SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix SmartPlaceListener

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-09-04 14:22:01 +02:00
Ursprung 247907e523
Commit c24da5c7a6

Datei anzeigen

@ -92,7 +92,7 @@ public class SmartPlaceListener implements Listener {
block.setType(event.getMaterial());
BlockData blockData = event.getItem().getType().createBlockData();
BlockFace blockFace = event.getBlockFace();
if (block.getType() == Material.HOPPER) {
if (block.getType() == Material.HOPPER || block.getType() == Material.OBSERVER) {
blockFace = blockFace.getOppositeFace();
}
if (blockData instanceof Directional) {