Adding Villager Trades Breaks NBT
D1scoball opened this issue ยท 0 comments
Issue description
When adding a trade to a villager via any of the methods In Fabric 1.21.1 it breaks the NBT of the villager that has that trade. If you try to view the NBT using /data get entity it errors. And if you try to either close or save the game with a village with edited trades it will crash the game and delete the villager.
Steps to reproduce
Simply try and add a trade to a villager in the listed version.
Script used
The crafttweaker.log file
No Issues
Minecraft version
1.21.1
Modloader
Fabric
Modloader version
0.16.13
CraftTweaker version
21.0.27
Other relevant information
Description: Saving entity NBT
java.lang.IllegalStateException: Value must be positive: 0; Item must not be minecraft:air