mojira.dev
MC-158774

Client-server desync when attaching a lead to a fence while holding a block

The bug

When attaching a lead to a fence while holding fences, the client places the fence that is held for a short time, causing a desync with the server.

To reproduce

  1. Place a fence

  2. Put some more fences in your hotbar

  3. Leash an entity

  4. Select the fences

  5. Attach the lead to the fence
    → ❌ The fences stack appears to be decreased, and neighbouring fences try to connect to where the fence appeared for a split second

Video

[media]

Original description

tying a lead to a fence while holding the same kind of fence will use the fence without placing it. right clicking next to a fence doing this can create a glitched fence where it's connected to nothing

Linked issues

MC-128216 Fence disappears from inventory if you attempt to place a fence post against it with a mob attatched to you by a lead Resolved MC-130600 Blocks disappear when attaching a lead to a fence Resolved MC-276177 Stange behaviour with fence posts disappearing when attached to another fence with a lead Resolved MC-278792 Lost Fences in my hotbar Resolved MC-279103 Block disappears when attaching lead Resolved

Attachments

Comments 12

Can confirm. I edited the ticket so that it can be more easily found and the description text is more clear. I hope you're fine with that.

I uploaded a video that shows this behavior in 1.15 with a torch in the offhand and a lead in the main hand.

Can confirm in 1.17.1.

Can confirm in 1.18.2 and 22w16b.

Can confirm in 1.19.

2 more comments

Can confirm in 1.21.10

Can confirm in 1.21.11.

Can confirm in 26.1 snapshot 5

Hi there. I also stumbled upon this bug by accident and found this post.
I can also confirm that this bug is present in 26.3 snapshot 5.

Before I found this post, I was actually researching the first versions that had this bug and finally discovered snapshot 16w40a. However, I believe I might have more evidence as to why this bug exists after observing the behavior from the sequential 1.11 snapshots. I’ll first do more comparisons to see if it’s anything worth sharing.

same bug on 26.2 realm

migrated

(Unassigned)

Confirmed

Platform

Low

Items

Minecraft 16w40a, Minecraft 1.12.2, Minecraft 18w14b, 1.14.4, 1.15, , 1.21.4, 1.21.5, 1.21.7, 1.21.8, 26.1

Retrieved