This commit is contained in:
tastybento 2023-07-10 21:20:05 -07:00
commit 1d3be20237
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ You're on an island, in a sea of acid! If you like Skyblock, try the AcidIsland
Instead of falling you must contend with acid water when expanding your island, and players can boat to each other's islands.
<img width="512" alt="acidislandart" src="https://github.com/BentoBoxWorld/AcidIsland/assets/4407265/60e97bba-2b7d-425e-9130-cffef73cf76e">
## Download
You can download from GitHub, or ready made plugin packs from [https://download.bentobox.world](https://download.bentobox.world).

View File

@ -324,7 +324,7 @@ public class AcidEffect implements Listener {
private static boolean damage(ItemStack item) {
ItemMeta im = item.getItemMeta();
if (im instanceof Damageable d) {
if (im instanceof Damageable d && !im.isUnbreakable()) {
d.setDamage(d.getDamage() + 1);
item.setItemMeta(d);
return d.getDamage() >= item.getType().getMaxDurability();