Improve runtime target selection fallback logic
This commit is contained in:
@@ -5665,7 +5665,10 @@ export class RuntimeHost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const nextTarget =
|
const nextTarget =
|
||||||
this.proposedRuntimeTarget ?? this.runtimeTargetCandidates[0] ?? null;
|
this.proposedRuntimeTarget ??
|
||||||
|
this.resolveRuntimeTargetCandidateNearestScreenCenter({
|
||||||
|
requirePlayerVisibility: true
|
||||||
|
});
|
||||||
|
|
||||||
if (nextTarget !== null) {
|
if (nextTarget !== null) {
|
||||||
this.setActiveRuntimeTargetReference({
|
this.setActiveRuntimeTargetReference({
|
||||||
|
|||||||
Reference in New Issue
Block a user