From ef65e871a86a710bb4cb1601baf4a148a1864b5f Mon Sep 17 00:00:00 2001 From: Flo56958 Date: Fri, 1 Jan 2021 17:21:08 +0100 Subject: [PATCH] Fix Mistake in commit 6b8ea2a34fcffed99b5468df37522b40f7be7627 --- .../java/de/flo56958/minetinker/listeners/ArmorListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/flo56958/minetinker/listeners/ArmorListener.java b/src/main/java/de/flo56958/minetinker/listeners/ArmorListener.java index c51b7ea2..84f52dc6 100644 --- a/src/main/java/de/flo56958/minetinker/listeners/ArmorListener.java +++ b/src/main/java/de/flo56958/minetinker/listeners/ArmorListener.java @@ -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)