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)