This commit is contained in:
Alexander Medvedev 2026-01-27 20:54:38 +01:00
parent e796cf8374
commit 3776b225e4
2 changed files with 3 additions and 3 deletions

View File

@ -900,7 +900,7 @@ impl Player {
// Try positions around the bed based on facing direction
// Vanilla tries multiple offset patterns; we use a simplified version
if let Some(spawn_pos) =
Self::find_bed_spawn_position(world, pos, facing, respawn_point.yaw).await
Self::find_bed_spawn_position(&world, pos, facing, respawn_point.yaw).await
{
return Some(CalculatedRespawnPoint {
position: spawn_pos,
@ -925,7 +925,7 @@ impl Player {
}
// Try positions around the anchor
if let Some(spawn_pos) = Self::find_anchor_spawn_position(world, pos).await {
if let Some(spawn_pos) = Self::find_anchor_spawn_position(&world, pos).await {
// Decrement charges after successful respawn position found
let new_charges = charges - 1;
let mut new_props = anchor_props;

View File

@ -1980,7 +1980,7 @@ impl World {
.chunk_manager
.lock()
.await
.change_world(&self.level, &new_world.level);
.change_world(&self.level, new_world.clone());
// Unload watched chunks from current world
player.unload_watched_chunks(self).await;