mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +00:00
Fixed #1526 $player->getPosition() returns a WeakRef error
This commit is contained in:
@ -616,7 +616,7 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
|
||||
public function getPosition(){
|
||||
return new Position($this->x, $this->y, $this->z, $this->level);
|
||||
return new Position($this->x, $this->y, $this->z, $this->getLevel());
|
||||
}
|
||||
|
||||
public function collision(){
|
||||
|
Reference in New Issue
Block a user