Improve runtime target selection fallback logic

This commit is contained in:
2026-04-25 18:03:36 +02:00
parent 3d91477d4c
commit cddbd0aa74

View File

@@ -5665,7 +5665,10 @@ export class RuntimeHost {
}
const nextTarget =
this.proposedRuntimeTarget ?? this.runtimeTargetCandidates[0] ?? null;
this.proposedRuntimeTarget ??
this.resolveRuntimeTargetCandidateNearestScreenCenter({
requirePlayerVisibility: true
});
if (nextTarget !== null) {
this.setActiveRuntimeTargetReference({