Skip to content

Commit

Permalink
Use dig speed 1 instead of -1
Browse files Browse the repository at this point in the history
Negative enchants can no longer be used in at least 1.21 and maybe earlier
  • Loading branch information
virustotalop committed Sep 22, 2024
1 parent 25020d6 commit 965daea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void setGlowing(boolean glowing) {
ItemStack item = this.getItemStack();
ItemMeta meta = item.getItemMeta();
if (glowing) {
meta.addEnchant(Enchantment.DIG_SPEED, -1, true);
meta.addEnchant(Enchantment.DIG_SPEED, 1, true);
meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
} else {
meta.removeEnchant(Enchantment.DIG_SPEED);
Expand Down

0 comments on commit 965daea

Please sign in to comment.