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, this.currentClockState,
dt dt
); );
if (this.sceneReady) {
this.updateRuntimeNpcPresenceAfterClockAdvance( this.updateRuntimeNpcPresenceAfterClockAdvance(
previousTimeOfDayHours, previousTimeOfDayHours,
this.currentClockState.timeOfDayHours this.currentClockState.timeOfDayHours
); );
}
this.applyDayNightLighting(); this.applyDayNightLighting();
this.clockPublishAccumulator += dt; this.clockPublishAccumulator += dt;