mojira.dev
MC-10343

Leaving world when riding stacked entities unstacks or deletes the stack

A player on a pig in a minecart who relogs will cause the minecart to disappear.
See this video by sethbling.

Alternatively, see this video to see what it looks like from another player's perspective.

Steps to reproduce:
1. Run this command to create the needed entities:

/summon Pig ~ ~5 ~ {Saddle:1,Riding:{id:Pig,Riding:{id:Pig}}}

2. Mount uppermost entity
3. Disconnect/Unload world
4. Join/Load world

Result:
Local game: Deletes all but the uppermost entity of the stack
External Server: Decouples the uppermost entity from the stack; all other entities remain stacked correctly.

Related issues

Comments

Tails

Confirmed.

carmeops sxaizo

as i understand it (probably need more testing) here is how it work:

when you disconnect when riding an entity, the entity is disconnected and stored with you

if the entity (like the pig) is riding other entities (like the cart) it disconnect all the stacked entities but only store with you what you are directly riding

so if sethbling tested disconnecting on his mob tower with a boat on top, he would reappear with only the boat

also: someone should try a mod allowing to ride other players and disconnect on top of someone to see what it does

Zuriki

Update and restructure bug report to:

Title:
Disconnecting/unloading world when riding stacked entities decouples and/or deletes stack

Steps to reproduce:
1. Run command (13w37a and above only, or create stack with external tool):

/summon Pig ~ ~5 ~ {Saddle:1,Riding:{id:Pig,Riding:{id:Pig}}}

2. Ride uppermost entity
3. Disconnect/Unload world
4. Join/Load world

Result:
Internal Server: Deletes all but uppermost entity of the stack
External Server: Decouples uppermost entity from the stack, all other entities remain stacked correctly.

Addition versions this bug affects:
1.6.3, 13w36a, 13w36b, 13w37a, 13w37b

Ezekiel

Is this still a concern in the latest Minecraft version 14w30c? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Shelby

Has there been any progress on this issue? I logged off of my account night before last riding a horse and when I logged on the next day the horse was gone, and the saddle that was on it. I closed out of the game without saving to see if it would be the same and it was, the horse and saddle were gone.

marcono1234

Confirmed for

  • 1.8.3 Please update description like @unknown suggested: Comment

Torabi

I'm curious whether the unstacking occurs upon leaving the world or entering it. While tricky to test for a local world (you could examine the NBT data, but it can be a pain to find the right chunk), it shouldn't be too hard to test on a server with someone else there to observe.

pokechu22

@@unknown I'll test that when I get back home from school. I've got an alt account I can use for that.

pokechu22

OK, recorded. It unstacks upon disconnect – the topmost pig is actually disconnected with the player. I think I see what the cause of this is – it should disconnect the entire stack, not only the topmost pig.

marcono1234

Confirmed for

  • 15w37a

pokechu22

Whoops, totally forgot I had this ticket. Added 15w37a and 1.8.8.

Itouch2

Cannot reproduce in 15w45a

Ezekiel

Possibly fixed? Need another person to confirm it's fixed.

[Mod] redstonehelper

15w45a: Rejoined world while riding pig in minecart, stack stayed stacked. Considering fixed somewhere between 15w45a and 15w41b.

Shelby

Can confirm it's fixed. Just tried it on my game and works fine now.

pokechu22

Jens Bergensten

Confirmed

disconnect, dismount, stacked, stacked-entity

Snapshot 13w09a, Snapshot 13w10b, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.1, ..., Minecraft 1.8.1-pre3, Minecraft 1.8.3, Minecraft 1.8.8, Minecraft 15w37a, Minecraft 15w41b

Minecraft 15w45a

Retrieved