mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-29 06:05:27 +01:00
Merge branch 'develop' of https://github.com/BentoBoxWorld/AcidIsland.git into develop
This commit is contained in:
commit
1d3be20237
@ -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.
|
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
|
## Download
|
||||||
|
|
||||||
You can download from GitHub, or ready made plugin packs from [https://download.bentobox.world](https://download.bentobox.world).
|
You can download from GitHub, or ready made plugin packs from [https://download.bentobox.world](https://download.bentobox.world).
|
||||||
|
@ -324,7 +324,7 @@ public class AcidEffect implements Listener {
|
|||||||
private static boolean damage(ItemStack item) {
|
private static boolean damage(ItemStack item) {
|
||||||
ItemMeta im = item.getItemMeta();
|
ItemMeta im = item.getItemMeta();
|
||||||
|
|
||||||
if (im instanceof Damageable d) {
|
if (im instanceof Damageable d && !im.isUnbreakable()) {
|
||||||
d.setDamage(d.getDamage() + 1);
|
d.setDamage(d.getDamage() + 1);
|
||||||
item.setItemMeta(d);
|
item.setItemMeta(d);
|
||||||
return d.getDamage() >= item.getType().getMaxDurability();
|
return d.getDamage() >= item.getType().getMaxDurability();
|
||||||
|
Loading…
Reference in New Issue
Block a user