fix: armor stand no fall damage

This commit is contained in:
Lord_Cambion committed 2026-12-05 01:15:38 +01:00
1 parent 98d6a83213
commit 6828811ca3
2 files changed
+6

No files matched your search

+5
View File
@@ -371,6 +371,11 @@ void ArmorStand::causeDamage(float damage)
}
}
void ArmorStand::checkFallDamage(double ya, bool onGround)
{
fallDistance = 0.0f;
}
bool ArmorStand::hurt(DamageSource* source, float damage)
{
if (isInvulnerable() || level->isClientSide || removed || isMarker()) return false;