Skip to content

Commit

Permalink
fix respawn position being inside top block (#295)
Browse files Browse the repository at this point in the history
Co-authored-by: user622628252416 <[email protected]>
  • Loading branch information
user622628252416 and user622628252416 authored Nov 16, 2024
1 parent caff0df commit 00af2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pumpkin/src/entity/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 00af2b9

Please sign in to comment.