Item duplication with chested donkeys, mules and llamas
To reproduce
- Spawn in a donkey, tame it, and equip it with a chest
- Player 2 opens the donkey's inventory
- Player 2 places items to duplicate in the inventory and keeps the GUI open
- Player 1 mounts the chested horse/donkey
- Player 1 disconnects, the donkey disappears
→
Player 2's GUI stays open - Player 2 grabs items from the inventory
- 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.
2019-09-25, 02:01 AM
2020-06-18, 05:39 PM
2020-03-13, 11:57 AM
3
2
donkey, duplication, inventory, llama, mule