mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +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
|
* @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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user