chore: make slime block more accurate to decomp

This commit is contained in:
Fireblade
2026-08-02 15:06:34 -04:00
parent 30d7291310
commit 2c42b0cea3
6 changed files with 67 additions and 47 deletions
+5
View File
@@ -168,6 +168,7 @@ void LivingEntity::checkFallDamage(double ya, bool onGround)
if (onGround)
{
// TODO: LANDING PARTICLES HERE
int xt = Mth::floor(x);
int yt = Mth::floor(y - 0.2f - heightOffset);
int zt = Mth::floor(z);
@@ -188,6 +189,10 @@ void LivingEntity::checkFallDamage(double ya, bool onGround)
{
auto ent = shared_from_this();
Tile::tiles[t]->fallOn(level, xt, yt, zt, ent, fallDistance);
if (t == Tile::slimeBlock->id && !isSneaking())
{
m_clearFallDamageThisTick = true;
}
}
}
}