fixes, new Tile update algorithm

This commit is contained in:
Shoghi Cervantes
2014-02-27 15:12:05 +01:00
parent c9dfdc288d
commit 6bd91cf39e
8 changed files with 47 additions and 19 deletions

View File

@ -306,7 +306,7 @@ class Level{
}
public function getTile(Vector3 $pos){
if($pos instanceof Position and $pos->level->getName() !== $this->getName()){
if($pos instanceof Position and $pos->level !== $this){
return false;
}
$tiles = $this->getChunkTiles($pos->x >> 4, $pos->z >> 4);