[BUG] Fortune Enchantment Mixin is buggy
BrekiTomasson opened this issue ยท 1 comments
Your LuckEnchantmentMixin.java
has faulty logic in it. With your mod loaded, I am unable to /enchant playername fortune 3
.
@Override
public boolean isAcceptableItem(ItemStack itemStack) {
if (this.type == EnchantmentTarget.DIGGER) {
return itemStack.getItem() == AlaskaNativeItems.ULU;
}
return super.isAcceptableItem(itemStack);
}
If you follow the logic in your code, it's basically going: "This is a pickaxe! A pickaxe is a Digger! A pickaxe is not an Ulu... So let's return false!"