Skip to content

Commit

Permalink
fixed heart amount (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Dec 12, 2017
1 parent 8a23f2f commit 286e30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/kiba/bhc/handler/HealthHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ else if(slotStack.getItem() instanceof ItemHeartAmulet) {
}
int extraHearts = 0;
for(int i = 0; i < hearts.length; i++) {
extraHearts += MathHelper.clamp(hearts[i], 0, ConfigHandler.HEARTS_STACKSIZE); //make sure to not bypass the limit
extraHearts += MathHelper.clamp(hearts[i], 0, ConfigHandler.HEARTS_STACKSIZE * 2); //make sure to not bypass the limit; bugfix: this is half hearts, so we need to double the limit...
}
AttributeModifier modifier = health.getModifier(HEALTH_MODIFIER);
if(modifier != null) {
Expand Down

0 comments on commit 286e30f

Please sign in to comment.