X,Z offset fixed

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-14 15:48:18 +01:00
parent f1b2bc248f
commit 72c4cc7a30
5 changed files with 19 additions and 9 deletions

View File

@ -50,6 +50,13 @@ class LevelAPI{
return false;
}
public function getBlock($x, $y, $z){
if($this->check()){
return $this->map->getBlock($x, $y, $z);
}
return array(0,0);
}
public function getOrderedChunk($X, $Z, $columnsPerPacket = 2){
$columnsPerPacket = max(1, (int) $columnsPerPacket);
$c = $this->getChunk($X, $Z);

View File

@ -146,7 +146,7 @@ class PlayerAPI{
public function getOffline($name){
if(!file_exists(FILE_PATH."data/players/".$name.".dat")){
console("[NOTICE] Player data not found for \"".$name."\", creating new");
console("[NOTICE] Player data not found for \"".$name."\", creating new profile");
$data = array(
"spawn" => array(
"x" => $this->server->spawn["x"],