From d735564948fb06629b38b3b070eacf98bde62926 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 5 Jun 2025 14:15:35 +0300 Subject: [PATCH] reset spawn to whatever world has if bed is missing/obstructed --- src/Player.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Player.php b/src/Player.php index 881ab6a9..46e9fdf6 100755 --- a/src/Player.php +++ b/src/Player.php @@ -2432,6 +2432,7 @@ class Player{ remove_bed: $this->sendChat("The bed is missing or cannot be accessed."); $this->setBedPosition(null); + $this->setSpawn($this->level->getSpawn()); }else{ $spawnPoint = BedBlock::findStandUpPosition($level, $x, $y, $z); if($spawnPoint == null) goto remove_bed;