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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user