From 9aa2f86c888052ff9ccf7af90e5ea02443f29d81 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Tue, 7 Jun 2016 10:34:36 -0400 Subject: [PATCH] Fixed #778 --- changelog.txt | 1 + .../java/WayofTime/bloodmagic/item/soul/ItemSentientSword.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index e24e7f97..2b0f2f9f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version 2.0.1-43 ------------------------------------------------------ - Added an initial method to divine where a blood rune is missing for the next tier of altar. - Fixed an NPE with the Gathering of the Forsaken Souls +- Fixed Absorption Hearts remaining after the absorption buff ends for the Steadfast Sentient Sword ------------------------------------------------------ Version 2.0.1-42 diff --git a/src/main/java/WayofTime/bloodmagic/item/soul/ItemSentientSword.java b/src/main/java/WayofTime/bloodmagic/item/soul/ItemSentientSword.java index 5c760a9a..b1dd87dd 100644 --- a/src/main/java/WayofTime/bloodmagic/item/soul/ItemSentientSword.java +++ b/src/main/java/WayofTime/bloodmagic/item/soul/ItemSentientSword.java @@ -175,7 +175,7 @@ public class ItemSentientSword extends ItemSword implements IDemonWillWeapon, IM if (!target.isEntityAlive()) { float absorption = attacker.getAbsorptionAmount(); - attacker.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, absorptionTime[willBracket])); + attacker.addPotionEffect(new PotionEffect(MobEffects.ABSORPTION, absorptionTime[willBracket], 127)); attacker.setAbsorptionAmount((float) Math.min(absorption + target.getMaxHealth() * 0.05f, maxAbsorptionHearts)); } break;