Rename syncRuntimeNpcScheduleToCurrentClock to syncRuntimeScheduleToCurrentClock

This commit is contained in:
2026-04-14 03:02:17 +02:00
parent 49ee2a1ed3
commit 10c9438870

View File

@@ -459,7 +459,7 @@ export class RuntimeHost {
this.runtimeScene = runtimeScene; this.runtimeScene = runtimeScene;
this.currentWorld = runtimeScene.world; this.currentWorld = runtimeScene.world;
this.syncRuntimeClockState(runtimeScene.time); this.syncRuntimeClockState(runtimeScene.time);
this.syncRuntimeNpcScheduleToCurrentClock(); this.syncRuntimeScheduleToCurrentClock();
this.activeController?.deactivate(this.controllerContext, { this.activeController?.deactivate(this.controllerContext, {
releasePointerLock: !preservePointerLockDuringLoad releasePointerLock: !preservePointerLockDuringLoad
}); });
@@ -2504,7 +2504,7 @@ export class RuntimeHost {
dt dt
); );
if (this.sceneReady) { if (this.sceneReady) {
this.syncRuntimeNpcScheduleToCurrentClock(); this.syncRuntimeScheduleToCurrentClock();
} }
this.applyDayNightLighting(); this.applyDayNightLighting();
this.clockPublishAccumulator += dt; this.clockPublishAccumulator += dt;
@@ -2573,7 +2573,7 @@ export class RuntimeHost {
this.firstPersonController.teleportTo(target.position, target.yawDegrees); this.firstPersonController.teleportTo(target.position, target.yawDegrees);
} }
private syncRuntimeNpcScheduleToCurrentClock() { private syncRuntimeScheduleToCurrentClock() {
if (this.runtimeScene === null || this.currentClockState === null) { if (this.runtimeScene === null || this.currentClockState === null) {
return; return;
} }