Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
063495c624
Commit
4951bf3ef7
@ -55,6 +55,9 @@ public class BlockRotatingBehaviour implements SmartPlaceBehaviour {
|
||||
event.setUseInteractedBlock(Event.Result.DENY);
|
||||
World world = event.getPlayer().getWorld();
|
||||
Block block = world.getBlockAt(event.getClickedBlock().getX() + event.getBlockFace().getModX(), event.getClickedBlock().getY() + event.getBlockFace().getModY(), event.getClickedBlock().getZ() + event.getBlockFace().getModZ());
|
||||
if (!block.getType().isAir()) {
|
||||
return SmartPlaceResult.IGNORED;
|
||||
}
|
||||
block.setType(event.getMaterial());
|
||||
blockData = event.getItem().getType().createBlockData();
|
||||
BlockFace blockFace = event.getBlockFace();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren