mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-01 00:28:26 +01:00
fix: slime block inaccurate damage properties + weird ui stuff
This commit is contained in:
1 parent
fb46ed3005
commit
e2b81cae79
7 files changed
+50
-8
No files matched your search
@@ -45,6 +45,11 @@ void SlimeTile::fallOn(Level *level, int x, int y, int z,
|
||||
if (entity == nullptr)
|
||||
return;
|
||||
|
||||
entity->clearFallDamageQueue();
|
||||
|
||||
entity->fallDistance = 0.0f;
|
||||
entity->onGround = false;
|
||||
|
||||
if (entity->isSneaking())
|
||||
return;
|
||||
|
||||
@@ -60,13 +65,15 @@ void SlimeTile::fallOn(Level *level, int x, int y, int z,
|
||||
entity->yd *= 0.8f;
|
||||
}
|
||||
}
|
||||
|
||||
entity->fallDistance = 0.0f;
|
||||
entity->onGround = false;
|
||||
}
|
||||
|
||||
void SlimeTile::stepOn(Level *level, int x, int y, int z, shared_ptr<Entity> entity)
|
||||
{
|
||||
if (entity != nullptr)
|
||||
{
|
||||
entity->clearFallDamageQueue();
|
||||
}
|
||||
|
||||
if (entity != nullptr &&
|
||||
std::abs(entity->yd) < 0.1f &&
|
||||
!entity->isSneaking())
|
||||
|
||||
Reference in new issue
Block a user