回滚卓越物品接口放置行为
This commit is contained in:
parent
95ea8370b5
commit
5ccf5c48fc
1 changed files with 0 additions and 3 deletions
|
@ -59,9 +59,6 @@ public class SuperbItemInterfaceBlock extends BaseEntityBlock {
|
||||||
@Override
|
@Override
|
||||||
public BlockState getStateForPlacement(@NotNull BlockPlaceContext context) {
|
public BlockState getStateForPlacement(@NotNull BlockPlaceContext context) {
|
||||||
Direction direction = context.getClickedFace().getOpposite();
|
Direction direction = context.getClickedFace().getOpposite();
|
||||||
if (context.getPlayer() != null && context.getPlayer().isShiftKeyDown()) {
|
|
||||||
direction = direction.getOpposite();
|
|
||||||
}
|
|
||||||
return this.defaultBlockState().setValue(FACING, direction).setValue(ENABLED, true);
|
return this.defaultBlockState().setValue(FACING, direction).setValue(ENABLED, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue