BackSlot

BackSlot

3M Downloads

Sword items in back slot will always trigger Enchantment#onTargetDamaged

MoriyaShiine opened this issue ยท 1 comments

commented

Hi! Since you add back slot items to getItemsEquipped at

@Inject(method = "getItemsEquipped", at = @At("RETURN"), cancellable = true)
, this causes EnchantmentHelper#onTargetDamaged to count enchantments that override onTargetDamaged in that method; this is not visible in vanilla because no vanilla enchantments override this method but any modded enchantments that do will trigger their effect.

Relevant issue: MoriyaShiine/enchancement#39
Version: 1.2.8

commented

Updated compat with lambdynlights which is the reason for this mixin.
It is not a very good solution but it works e62c4e0