PaperMC / PaperMC/Paper

Right clickable item desync

Open
#7,645 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: accepted type: bug upstream: vanilla version: 1.19
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

Other players should see you using items.

Observed/Actual behavior

When you scroll to a right clickable item (food, bow etc.) and then quickly start using it, other clients won't see you doing it.

Steps/models to reproduce

Here's a video showing it
https://user-images.githubusercontent.com/35194709/159305135-326edb7f-c707-4725-b694-f753aeafcd39.mp4

As you can see, if I immediately start holding right click after I select an item, the other client won't see me using that item.

Plugin and Datapack List

plugins
[18:17:20 INFO]: Plugins (0):
datapack list
[18:17:22 INFO]: There are 2 data packs enabled: [vanilla (built-in)], [file/bukkit (world)]
[18:17:22 INFO]: There are no more data packs available

Paper version

This server is running Paper version git-Paper-265 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 993f828)
You are running the latest version
Previous version: git-Paper-225 (MC: 1.18.2)

Other

I've tested this on a 1.8 server with ViaVersion and the issue doesn't exist there, meaning this isn't a client issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the rapid right-click sequence described in the issue and compare what the local player sees with what another client receives. Trace the Paper server path for selecting and using right-click items; the issue is done when other clients consistently see food, bows, and similar items being used after quick selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.