Trinkets (Fabric)

Trinkets (Fabric)

22M Downloads

(Fabric, Trinket ver. 3.7.2)On Equip Gets Called When Changing Nbt on Items

Winman7486 opened this issue ยท 1 comments

commented

While making a trinket and testing it it randomly stopped working, I relized after a while it was because of my trinket's onEquip method reseting nbt every time I would set it.
This seems to be because in the living entity mixin it checks if the item stacks are equal but because of an nbt change they are not.

commented

This is intentional, these methods get called when a stack changes outside of its tick method.