Ensure NPC presence update only when scene is ready
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user