Subtitles: a server's client ticks the overlay too
Single player joins its integrated server as a client, so `Minecraft.tick` takes the `tick_remote` path and never reaches `tick_mobs`, where the subtitle overlay's tick had its only call. The overlay therefore never started listening to the sound engine: no sound notified it, and the closed captions stayed empty with "Show Subtitles" on or off. Call `tick_subtitles` from `tick_remote_level` beside `tick_hud`, as the local path does. Co-Authored-By: ZCode (Z.ai) <noreply@z.ai>
This commit is contained in:
@@ -3489,6 +3489,9 @@ impl Game<'_> {
|
||||
self.sleep_timer = super::tick_sleep_timer(self.sleep_timer, self.sleeping.is_some());
|
||||
// Gui.tick: the titles, the action bar and the held item's name.
|
||||
self.tick_hud();
|
||||
// The subtitle overlay's share of the tick: the local path has it in
|
||||
// `tick_mobs`, which a server's client never reaches.
|
||||
self.tick_subtitles();
|
||||
let entity_collisions = self.player_entity_collisions();
|
||||
let pushed = self.remote_pushes();
|
||||
let Some(player) = self.player.as_mut() else {
|
||||
|
||||
Reference in New Issue
Block a user