mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Fixed chitin blocks not orienting constently
This commit is contained in:
parent
abbba5dc68
commit
f5cfe302a5
1 changed files with 1 additions and 3 deletions
|
@ -40,9 +40,7 @@ public class ChiselledChitinBlock extends Block {
|
||||||
@Nullable
|
@Nullable
|
||||||
public BlockState getPlacementState(ItemPlacementContext context) {
|
public BlockState getPlacementState(ItemPlacementContext context) {
|
||||||
PlayerEntity player = context.getPlayer();
|
PlayerEntity player = context.getPlayer();
|
||||||
|
Direction direction = context.getSide();
|
||||||
|
|
||||||
Direction direction = player == null ? context.getSide() : context.getPlayerLookDirection().getOpposite();
|
|
||||||
|
|
||||||
if (player != null && player.isSneaking()) {
|
if (player != null && player.isSneaking()) {
|
||||||
direction = direction.getOpposite();
|
direction = direction.getOpposite();
|
||||||
|
|
Loading…
Reference in a new issue