mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 10:19:39 +00:00
Fixed Tile entities not being read correctly
This commit is contained in:
parent
a669797ccb
commit
96b1831229
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user