Return if client
This commit is contained in:
parent
61345c0fa4
commit
fdc5a629d8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public class StorageUnitBlock extends BlockMachineBase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActionResult onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
|
public ActionResult onUse(BlockState state, World worldIn, BlockPos pos, PlayerEntity playerIn, Hand hand, BlockHitResult hitResult) {
|
||||||
if (unitType == TRContent.StorageUnit.CREATIVE) {
|
if (unitType == TRContent.StorageUnit.CREATIVE || worldIn.isClient) {
|
||||||
return super.onUse(state, worldIn, pos, playerIn, hand, hitResult);
|
return super.onUse(state, worldIn, pos, playerIn, hand, hitResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue