Ensure NPC presence update only when scene is ready

This commit is contained in:
2026-04-13 23:50:55 +02:00
parent bb938d94dd
commit 0b7d7f5443

View File

@@ -2046,10 +2046,12 @@ export class RuntimeHost {
this.currentClockState,
dt
);
this.updateRuntimeNpcPresenceAfterClockAdvance(
previousTimeOfDayHours,
this.currentClockState.timeOfDayHours
);
if (this.sceneReady) {
this.updateRuntimeNpcPresenceAfterClockAdvance(
previousTimeOfDayHours,
this.currentClockState.timeOfDayHours
);
}
this.applyDayNightLighting();
this.clockPublishAccumulator += dt;