mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 03:43:30 +01:00
parent
6de652761a
commit
8a7388ab57
1 changed files with 5 additions and 3 deletions
|
@ -83,10 +83,12 @@ 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;
|
||||
}
|
||||
if (!worldIn.isRemote)
|
||||
NetworkHooks.openGui((ServerPlayerEntity) player, tile, pos);
|
||||
return ActionResultType.SUCCESS;
|
||||
return ActionResultType.PASS;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue