mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
fixes, new Tile update algorithm
This commit is contained in:
@ -306,7 +306,7 @@ class Level{
|
||||
}
|
||||
|
||||
public function getTile(Vector3 $pos){
|
||||
if($pos instanceof Position and $pos->level->getName() !== $this->getName()){
|
||||
if($pos instanceof Position and $pos->level !== $this){
|
||||
return false;
|
||||
}
|
||||
$tiles = $this->getChunkTiles($pos->x >> 4, $pos->z >> 4);
|
||||
|
Reference in New Issue
Block a user