Updated all undefined constants/classes, place resent packets to the recovery queue for NACK

This commit is contained in:
Shoghi Cervantes
2014-03-13 10:48:33 +01:00
parent 3c3b346fd3
commit b24120a863
80 changed files with 347 additions and 324 deletions

View File

@@ -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){