From d5109548c851ae925fd39210b95c8bddf311a57a Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Tue, 5 Mar 2024 23:37:29 +0500 Subject: [PATCH] change: reset revived player health relative to their max health --- .../octol1ttle/knockdowns/common/events/KnockdownsEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/ru/octol1ttle/knockdowns/common/events/KnockdownsEvents.java b/common/src/main/java/ru/octol1ttle/knockdowns/common/events/KnockdownsEvents.java index 299bc51..6292d7b 100644 --- a/common/src/main/java/ru/octol1ttle/knockdowns/common/events/KnockdownsEvents.java +++ b/common/src/main/java/ru/octol1ttle/knockdowns/common/events/KnockdownsEvents.java @@ -98,7 +98,7 @@ public class KnockdownsEvents { player.setInvulnerable(false); player.setGlowing(false); - player.setHealth(6.0f); + player.setHealth(player.getMaxHealth() * 0.3f); } return; }