Skip to content
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