Skip to content

Commit

Permalink
fixed pipes having a gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Oct 24, 2023
1 parent b737a72 commit ff4c445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/muramasa/antimatter/pipe/BlockPipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ public InteractionResult use(BlockState state, Level world, BlockPos pos, Player
return InteractionResult.PASS;
}
if (type == AntimatterDefaultTools.SCREWDRIVER) {
if (player.isCrouching()) {
/*if (player.isCrouching()) {
AntimatterPlatformUtils.openGui((ServerPlayer) player, tile, extra -> extra.writeBlockPos(pos));
Utils.damageStack(stack, hand, player);
return InteractionResult.SUCCESS;
}
}*/
ICover instance = tile.getCoverHandler().map(h -> h.get(Utils.getInteractSide(hit))).orElse(ICover.empty);
if (!player.isCrouching()) {
if (!instance.isEmpty() && instance.openGui(player, Utils.getInteractSide(hit))) {
Expand Down

0 comments on commit ff4c445

Please sign in to comment.