mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-25 21:18:34 +01:00
parent
6de652761a
commit
8a7388ab57
1 changed files with 5 additions and 3 deletions
|
@ -83,11 +83,13 @@ public class PipeBlock extends ContainerBlock implements IPipeConnectable {
|
|||
stack.shrink(1);
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
}
|
||||
} else if (handIn == Hand.MAIN_HAND && stack.isEmpty()) {
|
||||
if (!worldIn.isRemote)
|
||||
NetworkHooks.openGui((ServerPlayerEntity) player, tile, pos);
|
||||
return ActionResultType.SUCCESS;
|
||||
}
|
||||
return ActionResultType.PASS;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {
|
||||
|
|
Loading…
Reference in a new issue