Fixed #1526 $player->getPosition() returns a WeakRef error

This commit is contained in:
Shoghi Cervantes 2014-06-23 16:31:22 +02:00
parent 396a3ff225
commit 38a958ed08

View File

@ -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(){