From 5565cc3a4116ffc91e5eb0f6d2f7ce5b8df08992 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 13 Oct 2026 01:26:25 +0200 Subject: [PATCH] Give player-less mob AI scenarios the oracle's far-away player The oracle's player stays 5000 blocks east between scenarios, and Mob.checkDespawn draws for it once a mob idles past 600 ticks (warden_alone). Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/examples/mob_ai_probe.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/examples/mob_ai_probe.rs b/crates/horizon-client/examples/mob_ai_probe.rs index 0601e6c6a..08ca01a43 100644 --- a/crates/horizon-client/examples/mob_ai_probe.rs +++ b/crates/horizon-client/examples/mob_ai_probe.rs @@ -659,7 +659,10 @@ fn main() -> horizon_client::Result<()> { } mobs.push(m); } - let mut player = s.player.map(|p| { + // Without a player of its own a scenario still has the oracle's, + // 5000 blocks east (Mob.checkDespawn draws for it). + let far = [f64::from(s.origin[0] + 5000), -60.0, f64::from(s.origin[1])]; + let mut player = Some(s.player.unwrap_or(far)).map(|p| { let position = Vec3::new(p[0], p[1], p[2]); PlayerView { position,