Skip to content

Commit

Permalink
Fix Effect Level
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueDarkLord committed Feb 19, 2024
1 parent 314012f commit bd7026b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void newUpdateEffects(Player player, ItemStack newItem, ItemStack oldIte
player.removePotionEffect(effect.getKey());
}

player.addPotionEffect(new PotionEffect(effect.getKey(), -1, effect.getValue()));
player.addPotionEffect(new PotionEffect(effect.getKey(), -1, effect.getValue() - 1));
}
}

Expand Down

0 comments on commit bd7026b

Please sign in to comment.