fix: final few bugs
This commit is contained in:
@@ -49,11 +49,11 @@ void SlimeTile::fallOn(Level *level, int x, int y, int z,
|
||||
|
||||
entity->fallDistance = 0.0f;
|
||||
|
||||
if (entity->isSneaking())
|
||||
return;
|
||||
|
||||
if (std::abs(entity->yd) < 0.1f)
|
||||
if (entity->isSneaking() || std::abs(entity->yd) < 0.1f)
|
||||
{
|
||||
entity->yd = 0.0f;
|
||||
return;
|
||||
}
|
||||
|
||||
if (entity->yd < 0.0f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user