Modifying a companions NBT data causes duplication bug
marianyp opened this issue ยท 1 comments
Describe the bug
Modifying a companion's NBT data causes their inventory to duplicate. This happens while using vanilla commands or programmatically with a mod or something like KubeJS.
To Reproduce
- Summon companion
- Notice what items it has in it's inventory and how many
- Run a command that modifies NBT data. e.g
data merge entity @e[type=humancompanions:knight,limit=1,sort=nearest] {testing123: []}
Versions (Please fill this out)
Minecraft version: 1.19.2
Forge version: 43.2.3
Human Companions version: 1.7.3
Additional info
This bug duplicate the companion's armor, weapons, and any items you give it