mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Merge pull request #3956 from redcrab2016/redcrab2016-patch-1
PR: Bug Fix - Crash if player is spawn to Y coord. >0 & <1
This commit is contained in:
commit
36028679d8
@ -2601,7 +2601,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
* @return bool|Position
|
||||
*/
|
||||
public function getSafeSpawn($spawn = null){
|
||||
if(!($spawn instanceof Vector3) or $spawn->y <= 0){
|
||||
if(!($spawn instanceof Vector3) or $spawn->y < 1){
|
||||
$spawn = $this->getSpawnLocation();
|
||||
}
|
||||
if($spawn instanceof Vector3){
|
||||
|
Loading…
x
Reference in New Issue
Block a user