mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +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->gamemode = $this->server->getGamemode();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setAllowFlight($this->isCreative());
|
$this->allowFlight = $this->isCreative();
|
||||||
$this->keepMovement = $this->isSpectator() || $this->allowMovementCheats();
|
$this->keepMovement = $this->isSpectator() || $this->allowMovementCheats();
|
||||||
if($this->isOp()){
|
if($this->isOp()){
|
||||||
$this->setRemoveFormat(false);
|
$this->setRemoveFormat(false);
|
||||||
|
Reference in New Issue
Block a user