Ensure NPC presence update only when scene is ready
This commit is contained in:
@@ -2046,10 +2046,12 @@ export class RuntimeHost {
|
|||||||
this.currentClockState,
|
this.currentClockState,
|
||||||
dt
|
dt
|
||||||
);
|
);
|
||||||
this.updateRuntimeNpcPresenceAfterClockAdvance(
|
if (this.sceneReady) {
|
||||||
previousTimeOfDayHours,
|
this.updateRuntimeNpcPresenceAfterClockAdvance(
|
||||||
this.currentClockState.timeOfDayHours
|
previousTimeOfDayHours,
|
||||||
);
|
this.currentClockState.timeOfDayHours
|
||||||
|
);
|
||||||
|
}
|
||||||
this.applyDayNightLighting();
|
this.applyDayNightLighting();
|
||||||
this.clockPublishAccumulator += dt;
|
this.clockPublishAccumulator += dt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user