End portal exits pass no spawn finder
main's item and mob End portal exit calls end_arrival, which now takes the respawn search's finder; in the End it only builds the platform. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -297,7 +297,8 @@ impl Game<'_> {
|
||||
let p = plan.approximate;
|
||||
let centre = Vec3::new(f64::from(p.x) + 0.5, f64::from(p.y), f64::from(p.z) + 0.5);
|
||||
if plan.dim == Dim::End {
|
||||
if let Err(e) = self.end_arrival(centre) {
|
||||
// In the End the arrival only builds the platform: no spawn search.
|
||||
if let Err(e) = self.end_arrival(centre, &mut None) {
|
||||
log::error!("End platform: {e}");
|
||||
}
|
||||
return centre;
|
||||
|
||||
Reference in New Issue
Block a user