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 7

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.

Can confirm in 1.19.2.

Can confirm in 1.21.8

Maddox Brockman

(Unassigned)

Confirmed

Platform

Low

Items

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

Retrieved