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

Related 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 MC-130600 Blocks disappear when attaching a lead to a fence MC-172458 Fences create ghost slots in inventory if unsuccessfully placed MC-177653 Block disappear when you use lead MC-181952 Visual fence post in inventory glitch when using leads MC-182426 Model bug with fences and lead. MC-189631 fence and leash not acting properly MC-189675 Fences can glitch while holding a leashed animal MC-192118 Wrong type of fence that is created by lead MC-205616 Fence glich behavior MC-213458 Glitch when tying a lead to fence while holding fence in hand MC-216113 Leashing llama to fence while holding door causes door to disappear and creates a lead dupe situation. MC-216220 When attaching a lead to a fence with a peony in your hand, the peony top is placed above the lead MC-228730 If I have an animal on a lead and I put 2 fences down the one on the bottom is ok but the one to the top disappears. MC-269827 Leashing mobs while having a fence in hand place another fence inside MC-276177 Stange behaviour with fence posts disappearing when attached to another fence with a lead MC-278792 Lost Fences in my hotbar MC-279103 Block disappears when attaching lead

Attachments

Comments

migrated
[media][media]
violine1101

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.

TheRealMrp

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

ampolive

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.2 and 22w16b.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

migrated

(Unassigned)

Confirmed

Platform

Low

Items

Minecraft 16w40a, Minecraft 1.12.2, Minecraft 18w14b, 1.14.4, 1.15, ..., 1.20.4, 1.21, 1.21.1, 1.21.4, 1.21.5

Retrieved