mojira.dev
MC-250360

Elytra flight sometimes impossible after clearing inventory in Creative.

When the player equips elytra and then unequips it by holding shift and clicking the destroy item button in the "Survival Inventory" tab of creative while holding a new pair of elytra with the cursor, the client and server desync, and the client believes the player is wearing elytra and thus should be able to fly but the server does not, as can be seen by using /data to check the player's inventory. This state persists even through gamemode changing, and by spamming space after switching to survival, the player can use this to jump much higher than usual. This does not work with normal items in normal inventory slots, but does seem to work with any item that can be put into the armor slots.

Related issues

Attachments

Comments

migrated
[media]
Avoma

I found some similar reports. I'm unsure if they're the same or not though.

ouroya

@Avoma they are the same, yes. this problem is due to inventory desyncs. Elytra in this state can be abused to jump much higher than usual.

migrated

That makes me wonder if that is a good standalone report reason; the client shouldn't be able to do that just because it convinced itself it has an item it does not.

ouroya

can confirm in 1.19.3 and 23w14a

[Mod] Jingy

I would argue that this does duplicate MC-156857, because the elytra is a ghost item as described in that issue.
Maybe update MC-156857 to include this behavior with the elytra?

tryashtar

Agreed

ouroya

(Unassigned)

Unconfirmed

(Unassigned)

1.18.2, 22w16b, 1.19.4, 23w14a

Retrieved