Count the hurt tilt down while the player is dead or riding

This commit is contained in:
Kacpherek
2026-10-26 16:16:19 +01:00
parent 006006f1d5
commit 6f4c2cfbbc
+5
View File
@@ -3219,6 +3219,11 @@ impl Game<'_> {
resources: self.motion,
}
.controlled_simulation_tick(keys)?;
} else {
// LivingEntity.baseTick counts hurtTime down for a dead or riding
// player too (controlled_simulation_tick does it otherwise): left
// at 10, the hurt tilt restarted every frame and shook the camera.
player.health.advance_clock();
}
// LocalPlayer.onUpdateAbilities: flight turned on or off (a double
// jump, a spectator, landing) is sent to the server.