Mojira Archive
MC-161754

Item duplication with chested donkeys, mules and llamas

To reproduce

  1. Spawn in a donkey, tame it, and equip it with a chest
  2. Player 2 opens the donkey's inventory
  3. Player 2 places items to duplicate in the inventory and keeps the GUI open
  4. Player 1 mounts the chested horse/donkey
  5. Player 1 disconnects, the donkey disappears
    Player 2's GUI stays open
  6. Player 2 grabs items from the inventory
  7. Player 1 logs back in, along with the donkey
    The donkey still has the items in its inventory, thus the items have been duplicated

Credit

This issue was originally reported on Paper's GH here: https://github.com/PaperMC/Paper/issues/2580

Video

The video in the report: https://www.youtube.com/watch?v=HIn_d_nbceY

I've forwarded the issue here since I do not know if it's been reported already.

Suggested fix

Close the inventory when the entity (chested animal) is removed from the world.

Fixed

Spottedleaf

[Mojang] Bartosz Bok

2019-09-25, 02:01 AM

2020-06-18, 05:39 PM

2020-03-13, 11:57 AM

3

2

Confirmed

Important

Entities, Player

donkey, duplication, inventory, llama, mule

1.14.4, 1.15 Pre-release 6, 1.15.2, 20w10a

20w12a