Skip to content

Commit

Permalink
Fixes pipe block shape for empty-handed interaction (#2576)
Browse files Browse the repository at this point in the history
  • Loading branch information
omergunr100 authored Dec 19, 2024
1 parent 2cf4894 commit 0aac8c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/gregtechceu/gtceu/api/block/PipeBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos,
types = Set.of(pipeTile.getPipeTuneTool());
}

if (types.stream().anyMatch(type -> type.itemTags.stream().anyMatch(held::is)) ||
if ((player.isShiftKeyDown() && held.isEmpty() && coverable.hasAnyCover()) ||
types.stream().anyMatch(type -> type.itemTags.stream().anyMatch(held::is)) ||
CoverPlaceBehavior.isCoverBehaviorItem(held, coverable::hasAnyCover,
coverDef -> ICoverable.canPlaceCover(coverDef, coverable)) ||
(held.getItem() instanceof BlockItem blockItem &&
Expand Down

0 comments on commit 0aac8c5

Please sign in to comment.