mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Use Player->isCreative()
This commit is contained in:
parent
51e4a62e7b
commit
1810088acf
@ -1892,7 +1892,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
$this->namedtag->playerGameType = new IntTag("playerGameType", $this->gamemode);
|
||||
}
|
||||
|
||||
$this->allowFlight = (bool) ($this->gamemode & 0x01);
|
||||
$this->allowFlight = $this->isCreative();
|
||||
|
||||
if(($level = $this->server->getLevelByName((string) $this->namedtag["Level"])) === null){
|
||||
$this->setLevel($this->server->getDefaultLevel());
|
||||
|
Loading…
x
Reference in New Issue
Block a user