Cucumber Library

Cucumber Library

99M Downloads

Reusable Items have one too few uses.

Darkere opened this issue ยท 0 comments

commented

if (copy.getDamage() >= stack.getMaxDamage())

You are returning ItemStack.EMPTY if the damage equals maximum damage. This means the information doesn't match what's on the tooltip and also breaks autocrafting calculation.

Example: Mystical agriculture Infusion crystal with damage at 998 shows it has 2 uses left but can only be used once.