1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-04-10 21:17:38 +02:00

Fixed chitin blocks not orienting constently

This commit is contained in:
Sollace 2020-05-05 22:25:24 +02:00
parent abbba5dc68
commit f5cfe302a5

View file

@ -40,9 +40,7 @@ public class ChiselledChitinBlock extends Block {
@Nullable
public BlockState getPlacementState(ItemPlacementContext context) {
PlayerEntity player = context.getPlayer();
Direction direction = player == null ? context.getSide() : context.getPlayerLookDirection().getOpposite();
Direction direction = context.getSide();
if (player != null && player.isSneaking()) {
direction = direction.getOpposite();