mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed #1526 $player->getPosition() returns a WeakRef error
This commit is contained in:
parent
396a3ff225
commit
38a958ed08
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user