I'm building a new modpack and had things pretty stable, but when I added Spellblades and Such and its dependencies (Extra RPG Attributes, AzureLib, Spell Engine, and Runes). The mixin that seems to be causing the problem is from Extra RPG Attributes, specifically here. That said, their mixin seems pretty tame, so I dug into Zenith's side of the loop.
Looking through the in Zenith, I'm seeing that LootCategory's ShieldBreakerTest seems to be doing some somewhat dubious checks here. I'm not exactly sure what the overall intent of these few lines is, but calling LivingEntity#setItemInHand from within a Loot Predicate seems like it'll almost always be a bad idea that can cause recursion like seen in this crash. Is there a better way to handle this LootCategory test?
Zenith Version: 1.2.3-1.20.1 Fabric Loader Version: 1.15.11 Minecraft: 1.20.1 Fabric API: 0.92.2+1.20.1
Crash log: https://mclo.gs/3s2y9RE
I'm building a new modpack and had things pretty stable, but when I added Spellblades and Such and its dependencies (Extra RPG Attributes, AzureLib, Spell Engine, and Runes). The mixin that seems to be causing the problem is from Extra RPG Attributes, specifically here. That said, their mixin seems pretty tame, so I dug into Zenith's side of the loop.
Looking through the in Zenith, I'm seeing that LootCategory's ShieldBreakerTest seems to be doing some somewhat dubious checks here. I'm not exactly sure what the overall intent of these few lines is, but calling LivingEntity#setItemInHand from within a Loot Predicate seems like it'll almost always be a bad idea that can cause recursion like seen in this crash. Is there a better way to handle this LootCategory test?