mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 17:20:02 +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(){
|
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(){
|
public function collision(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user