mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Updated all undefined constants/classes, place resent packets to the recovery queue for NACK
This commit is contained in:
@@ -416,7 +416,7 @@ class Level{
|
||||
}
|
||||
$now = microtime(true);
|
||||
if($this->stopTime == true){
|
||||
|
||||
return;
|
||||
} else{
|
||||
$time = $this->startTime + ($now - $this->startCheck) * 20;
|
||||
}
|
||||
@@ -864,8 +864,13 @@ class Level{
|
||||
return new Position($this->level->getData("spawnX"), $this->level->getData("spawnY"), $this->level->getData("spawnZ"), $this);
|
||||
}
|
||||
|
||||
public function getSafeSpawn($spawn = false){
|
||||
if($spawn === false){
|
||||
/**
|
||||
* @param Vector3 $spawn default null
|
||||
*
|
||||
* @return bool|Position
|
||||
*/
|
||||
public function getSafeSpawn($spawn = null){
|
||||
if(!($spawn instanceof Vector3)){
|
||||
$spawn = $this->getSpawn();
|
||||
}
|
||||
if($spawn instanceof Vector3){
|
||||
|
Reference in New Issue
Block a user