SteamWar/BauSystem2.0
Archiviert
12
0

Update BlockPlaceBehaviour
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-12-10 16:46:14 +01:00
Ursprung 1dcb2641e0
Commit 572b8bc3c8

Datei anzeigen

@ -39,6 +39,10 @@ public class BlockPlaceBehaviour implements SmartPlaceBehaviour {
@Override @Override
public SmartPlaceResult place(BlockPlaceEvent event) { public SmartPlaceResult place(BlockPlaceEvent event) {
if (event.getBlockAgainst().getType().isInteractable()) {
return SmartPlaceResult.IGNORED;
}
SmartPlaceResult smartPlaceResult = SmartPlaceResult.IGNORED; SmartPlaceResult smartPlaceResult = SmartPlaceResult.IGNORED;
Block block = event.getBlockPlaced(); Block block = event.getBlockPlaced();
BlockData blockData = block.getBlockData(); BlockData blockData = block.getBlockData();