SteamWar/BauSystem2.0
Archiviert
12
0

Fix weird BlockRotatingBehaviour
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-07-04 00:24:34 +02:00
Ursprung 07d8b7383a
Commit b8b50987d1

Datei anzeigen

@ -61,6 +61,9 @@ public class BlockRotatingBehaviour implements SmartPlaceBehaviour {
block.setType(event.getMaterial());
blockData = event.getItem().getType().createBlockData();
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) {
blockFace = blockFace.getOppositeFace();
}