mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Player: assign allowFlight directly instead of using setter
fixes #2397
This was changed by a4939b6bf1
without apparent reason. It causes AdventureSettings to be sent too early.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user