Startup crash with Futurepack
Divineaspect opened this issue ยท 3 comments
Made a PR to fix this MinecraftForge/MinecraftForge#7222
hi, FuturepaclDev here, the code in Question is:
@Override
public int getMaxDamage(ItemStack stack)
{
int lvl = EnchantmentHelper.getEnchantmentLevel(Enchantments.UNBREAKING, stack);
return super.getMaxDamage(stack) +(100 * lvl);
}
EnchantmentHelper.getEnchantmentLevel, checks if Dynamic Enchanments are applyable, this checks if the ItemSTack is damageable, which directly check the maxDamage again. My best guess right now is to make a forge PR so patch ItemStack to call Item#isDamageable instead.