Return if client

This commit is contained in:
Justin Vitale 2020-07-09 04:46:36 +10:00
parent 61345c0fa4
commit fdc5a629d8

View file

@ -61,7 +61,7 @@ public class StorageUnitBlock extends BlockMachineBase {
@Override
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);
}