From 00af2b98683b11946cddb4f08de3b0ce04c1fddd Mon Sep 17 00:00:00 2001 From: user622628252416 <76960354+user622628252416@users.noreply.github.com> Date: Sat, 16 Nov 2024 20:35:14 +0100 Subject: [PATCH] fix respawn position being inside top block (#295) Co-authored-by: user622628252416 --- pumpkin/src/entity/player.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/entity/player.rs b/pumpkin/src/entity/player.rs index 23e3a9cb7..6993937c2 100644 --- a/pumpkin/src/entity/player.rs +++ b/pumpkin/src/entity/player.rs @@ -557,7 +557,7 @@ impl Player { let x = 10.0; let z = 10.0; let top = world.get_top_block(Vector2::new(x as i32, z as i32)).await; - let position = Vector3::new(x, f64::from(top), z); + let position = Vector3::new(x, f64::from(top + 1), z); let yaw = 10.0; let pitch = 10.0;