began work on fixing unbreaking issue
This commit is contained in:
parent
1c61b431fe
commit
b195479579
2 changed files with 11 additions and 1 deletions
|
@ -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
|
|
@ -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);
|
||||
|
|
Reference in a new issue