From 3b499b9f5c64846f31098a0d169ae7a215c382af Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sun, 3 Mar 2024 16:42:31 +0500 Subject: [PATCH] fix: check if teammate is dead instead of downed player --- .../java/ru/octol1ttle/knockdowns/common/KnockdownsUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/ru/octol1ttle/knockdowns/common/KnockdownsUtils.java b/common/src/main/java/ru/octol1ttle/knockdowns/common/KnockdownsUtils.java index 8715bd8..6f6b651 100644 --- a/common/src/main/java/ru/octol1ttle/knockdowns/common/KnockdownsUtils.java +++ b/common/src/main/java/ru/octol1ttle/knockdowns/common/KnockdownsUtils.java @@ -15,7 +15,7 @@ public class KnockdownsUtils { continue; } IKnockableDown knockable = (IKnockableDown) teammate; - if (!knockable.is_KnockedDown() && !player.isDead()) { + if (!knockable.is_KnockedDown() && !teammate.isDead()) { return false; } }