Skip to content

Commit

Permalink
Fix issue were glow was not removed.
Browse files Browse the repository at this point in the history
If glow was applied to a panel item, but then the glow setting was set
to false, the glow was not removed from the panel item.

Relates to BentoBoxWorld/AOneBlock#326
  • Loading branch information
tastybento committed Jul 20, 2023
1 parent 8ce78c8 commit 850939f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,13 @@ public boolean isGlow() {
public void setGlow(boolean glow) {
this.glow = glow;
if (meta != null) {
meta.addEnchant(Enchantment.ARROW_DAMAGE, 0, glow);
if (glow) {
meta.addEnchant(Enchantment.ARROW_DAMAGE, 0, glow);
} else {
meta.removeEnchant(Enchantment.ARROW_DAMAGE);
}
icon.setItemMeta(meta);

}
}

Expand Down

0 comments on commit 850939f

Please sign in to comment.