reset spawn to whatever world has if bed is missing/obstructed

This commit is contained in:
GameHerobrine 2025-06-05 14:15:35 +03:00
parent 6ab777e5e9
commit d735564948

View file

@ -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;