Skip to content

Commit

Permalink
Fix Mistake in commit 6b8ea2a
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo56958 committed Jan 1, 2021
1 parent f16e674 commit ef65e87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ private void expCalculation(final boolean isBlocking, @NotNull final ItemStack t
int amount = config.getInt("ExpPerEntityHit", 1);

if (config.getBoolean("EnableDamageExp", true)) {
amount = Math.min(amount, (int) Math.round(event.getFinalDamage()));
//Min because the lowest exp amount you should get is ExpPerEntityHit
amount = Math.max(amount, (int) Math.round(event.getFinalDamage()));
//Max because the lowest exp amount you should get is ExpPerEntityHit
}

if (config.getBoolean("DisableExpFromFalldamage", false)
Expand Down

0 comments on commit ef65e87

Please sign in to comment.