mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-26 05:28:33 +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);
|
stack.shrink(1);
|
||||||
return ActionResultType.SUCCESS;
|
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)
|
return ActionResultType.PASS;
|
||||||
NetworkHooks.openGui((ServerPlayerEntity) player, tile, pos);
|
|
||||||
return ActionResultType.SUCCESS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue