回滚卓越物品接口放置行为

This commit is contained in:
Light_Quanta 2025-06-25 01:20:16 +08:00
parent 95ea8370b5
commit 5ccf5c48fc
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -59,9 +59,6 @@ public class SuperbItemInterfaceBlock extends BaseEntityBlock {
@Override
public BlockState getStateForPlacement(@NotNull BlockPlaceContext context) {
Direction direction = context.getClickedFace().getOpposite();
if (context.getPlayer() != null && context.getPlayer().isShiftKeyDown()) {
direction = direction.getOpposite();
}
return this.defaultBlockState().setValue(FACING, direction).setValue(ENABLED, true);
}