Player: assign allowFlight directly instead of using setter

fixes #2397

This was changed by a4939b6bf11e3da6f3ffc569540fafd8eba84545 without apparent reason. It causes AdventureSettings to be sent too early.
This commit is contained in:
Dylan K. Taylor 2018-08-22 19:20:21 +01:00
parent 286e062086
commit d6376a236d

View File

@ -1897,7 +1897,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->gamemode = $this->server->getGamemode();
}
$this->setAllowFlight($this->isCreative());
$this->allowFlight = $this->isCreative();
$this->keepMovement = $this->isSpectator() || $this->allowMovementCheats();
if($this->isOp()){
$this->setRemoveFormat(false);