Skip to content

Fix a minor mistake in Compact Machine Block #594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 1.19.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void setPlacedBy(Level worldIn, BlockPos pos, BlockState state, @Nullable
@SuppressWarnings("deprecation")
public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand handIn, BlockHitResult hit) {
if (level.isClientSide())
return InteractionResult.SUCCESS;
return InteractionResult.PASS;

MinecraftServer server = level.getServer();
ItemStack mainItem = player.getMainHandItem();
Expand Down Expand Up @@ -287,7 +287,7 @@ public InteractionResult use(BlockState state, Level level, BlockPos pos, Player
}
}

return InteractionResult.SUCCESS;
return InteractionResult.PASS;
}

private void createAndEnterRoom(Player player, MinecraftServer server, CompactMachineBlockEntity tile) {
Expand Down