From a204ec52f40ff3a5813c191f92a2c47c383edd43 Mon Sep 17 00:00:00 2001 From: Lord_Cambion Date: Wed, 8 Apr 2026 17:28:13 +0200 Subject: [PATCH] fix: poison setting life to 1hp --- Minecraft.World/MobEffect.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Minecraft.World/MobEffect.cpp b/Minecraft.World/MobEffect.cpp index 18a345aa..71620b0c 100644 --- a/Minecraft.World/MobEffect.cpp +++ b/Minecraft.World/MobEffect.cpp @@ -137,12 +137,9 @@ void MobEffect::applyEffectTick(shared_ptr mob, int amplification) } else if (id == poison->id) { - float health = mob->getHealth(); - if (health > 1.0f) + if (mob->getHealth() > 1.0f) { - float safeDmg = health - 1.0f; - if (safeDmg > 0.0f) - mob->hurt(DamageSource::magic, safeDmg); + mob->hurt(DamageSource::magic, 1.0f); } } else if (id == wither->id)