Fixed Tile entities not being read correctly

This commit is contained in:
Shoghi Cervantes 2014-05-27 16:02:03 +02:00
parent a669797ccb
commit 96b1831229

View File

@ -982,7 +982,7 @@ class Level{
* @return bool|Tile * @return bool|Tile
*/ */
public function getTile(Vector3 $pos){ public function getTile(Vector3 $pos){
if($pos instanceof Position and $pos->level !== $this){ if($pos instanceof Position and $pos->getLevel() !== $this){
return false; return false;
} }
$tiles = $this->getChunkTiles($pos->x >> 4, $pos->z >> 4); $tiles = $this->getChunkTiles($pos->x >> 4, $pos->z >> 4);