Skip to content

Commit

Permalink
788 Fix Vampire (#792)
Browse files Browse the repository at this point in the history
* Fix Vampire
Vampire was named Viper: Changed it to the correct enchant name.
  • Loading branch information
TrueDarkLord committed Feb 19, 2024
1 parent 9300b64 commit ef1bdd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ issues = https://github.com/Crazy-Crew/CrazyEnchantments/issues

group = com.badbones69.crazyenchantments
description = Adds over 80 unique enchantments to your server and more!
version = 2.2.6
version = 2.2.7
apiVersion = 1.20

minecraftVersion = 1.20.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public void run() {
if (damager.getSaturation() + (2 * enchantments.get(CEnchantments.NUTRITION.getEnchantment())) >= 20) damager.setSaturation(20);
}

if (damager.getHealth() > 0 && EnchantUtils.isEventActive(CEnchantments.VIPER, damager, item, enchantments)) {
if (damager.getHealth() > 0 && EnchantUtils.isEventActive(CEnchantments.VAMPIRE, damager, item, enchantments)) {
// Uses getValue as if the player has health boost it is modifying the base so the value after the modifier is needed.
double maxHealth = damager.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();

Expand Down

0 comments on commit ef1bdd4

Please sign in to comment.