Server: re-added @see reference that somehow got deleted

this is useful when clicking through references in the call stack.
This commit is contained in:
Dylan K. Taylor 2023-10-18 10:22:37 +01:00
parent 7b5c30bc2c
commit 932116fa52
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -570,6 +570,7 @@ class Server{
$playerPromiseResolver = new PromiseResolver();
$createPlayer = function(Location $location) use ($playerPromiseResolver, $class, $session, $playerInfo, $authenticated, $offlinePlayerData) : void{
/** @see Player::__construct() */
$player = new $class($this, $session, $playerInfo, $authenticated, $location, $offlinePlayerData);
if(!$player->hasPlayedBefore()){
$player->onGround = true; //TODO: this hack is needed for new players in-air ticks - they don't get detected as on-ground until they move