mojira.dev
MC-312109

rightclicking a fence with a block item while having an entity on a lead desyncs the block

If we interact with (rightclick) a fence while holding any block item and simultaneously holding an entity on a lead, the client will try to place the block. The server assumes that the only action of the player was to put the lead onto the fence/into a LeashFenceKnotEntity and doesn’t acknowledge the placed block, causing it to be removed without adding the block back into the players inventory.

I am not absolutely certain what the expected behaviour is even supposed to be here, but I think either the block placement or the LeashFenceKnotEntity needs to have definite priority on both server and client.

How to reproduce:
Simply summon any mob and place down a fence. Put any block and a lead in your hotbar, then put the mob on the lead. Switch to the slot containing the block and try placing it on the fence. Notice that the block disappears from your hotbar.

Linked issues

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media]

Thank you for your report!
We're tracking this issue in MC-158774, so this ticket is being resolved and linked as a Duplicate.

If you would like to add a vote and any extra information to the main ticket, it would be appreciated.

If you haven't already, please make use of the search feature to see if an issue you are about to report has already been reported.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

Z0rty

(Unassigned)

Unconfirmed

26.4 Snapshot 1

Retrieved