My modded entity drops is supposed to drop it's weapon as done through the loot table, that way it always drops at full durability. And it does do that, but it also will occasionally drop the one it spawns holding(which typically has very low durability), and sometimes it even drops both. How would I go about fixing this?
Here's the Loot Table code, if that would be useful: