1
0
Fork 0

began work on fixing unbreaking issue

This commit is contained in:
lightling 2019-09-17 16:21:54 -04:00
parent 1c61b431fe
commit b195479579
2 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,6 @@
main: lightling.gibsoniacraft.GibsoniaCraft
name: GibsoniaCraft
version: 1.1.2
version: 1.1.3
author: Lightling
description: Adds some small additions/changes to a PaperMC server
api-version: 1.14

View file

@ -123,6 +123,11 @@ public class BlockListener implements Listener
}
}
else if (item.getEnchantments().containsKey(Enchantment.DURABILITY))
{
addToDamage = 0;
}
// Update durability
dMeta.setDamage(currDur + addToDamage);
item.setItemMeta(meta);
@ -200,6 +205,11 @@ public class BlockListener implements Listener
}
}
else if (item.getEnchantments().containsKey(Enchantment.DURABILITY))
{
addToDamage = 0;
}
// Update durability
dMeta.setDamage(currDur + addToDamage);
item.setItemMeta(meta);