diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 97b44f3e8..bb43f4d70 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -982,7 +982,7 @@ class Level{ * @return bool|Tile */ public function getTile(Vector3 $pos){ - if($pos instanceof Position and $pos->level !== $this){ + if($pos instanceof Position and $pos->getLevel() !== $this){ return false; } $tiles = $this->getChunkTiles($pos->x >> 4, $pos->z >> 4);