This commit is contained in:
Shoghi Cervantes
2015-06-19 13:42:20 +02:00
parent f7e6246dc2
commit b856e5e909
2 changed files with 13 additions and 0 deletions

View File

@ -580,6 +580,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
return $this->port;
}
public function getNextPosition(){
return $this->newPosition !== null ? new Position($this->newPosition->x, $this->newPosition->y, $this->newPosition->z, $this->level) : $this->getPosition();
}
/**
* @return bool
*/