Only refresh collision world if scene is ready and NPC colliders changed

This commit is contained in:
2026-04-27 17:51:28 +02:00
parent fa84a04341
commit 90e1a84fc3

View File

@@ -5253,7 +5253,7 @@ export class RuntimeHost {
this.activeScheduledImpulseRoutineIds =
syncResult.nextActiveImpulseRoutineIds;
if (syncResult.npcColliderCollectionChanged) {
if (syncResult.npcColliderCollectionChanged && this.sceneReady) {
this.refreshCollisionWorldForNpcSchedule();
}
}