From 96b183122953b0759a63731b5768c78b9ee3c444 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 27 May 2014 16:02:03 +0200 Subject: [PATCH] Fixed Tile entities not being read correctly --- src/pocketmine/level/Level.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);