mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
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:
parent
286e062086
commit
d6376a236d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user