fixed name of cooked fish, the posion effect now doesnt kill you anymore and tnt now get pushed by water

This commit is contained in:
Lord_Cambion
2026-03-28 13:21:04 +01:00
parent 3b5a7e1fe6
commit 86accb1328
4 changed files with 36 additions and 10 deletions
+5 -2
View File
@@ -137,9 +137,12 @@ void MobEffect::applyEffectTick(shared_ptr<LivingEntity> mob, int amplification)
}
else if (id == poison->id)
{
if (mob->getHealth() > 1)
float health = mob->getHealth();
if (health > 1.0f)
{
mob->hurt(DamageSource::magic, 1);
float safeDmg = health - 1.0f;
if (safeDmg > 0.0f)
mob->hurt(DamageSource::magic, safeDmg);
}
}
else if (id == wither->id)