From 9c06f7013f84defe84e8cfcce9c9feea0c8e1de7 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 4 Oct 2021 10:51:24 +0100 Subject: [PATCH] Fixed Crit Multiplier activating when it shouldn't --- .../com/willfp/reforges/effects/effects/EffectCritMultiplier.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/effects/effects/EffectCritMultiplier.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/effects/effects/EffectCritMultiplier.kt index c124ed1..c002743 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/effects/effects/EffectCritMultiplier.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/effects/effects/EffectCritMultiplier.kt @@ -13,7 +13,7 @@ class EffectCritMultiplier : Effect("crit_multiplier") { event: EntityDamageByEntityEvent, config: JSONConfig ) { - if (attacker.velocity.y > 0) { + if (attacker.velocity.y >= 0) { return } event.damage *= config.getDouble("multiplier")