mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Fixed precedence problem (#1)
as mentioned in 4cb76f369a (commitcomment-19068812)
This commit is contained in:
parent
900c4adb66
commit
f2f70480ee
@ -1628,7 +1628,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$nbt->playerGameType = new IntTag("playerGameType", $this->gamemode);
|
||||
}
|
||||
|
||||
$this->allowFlight = (bool) $this->gamemode & 0x01;
|
||||
$this->allowFlight = (bool) ($this->gamemode & 0x01);
|
||||
|
||||
if(($level = $this->server->getLevelByName($nbt["Level"])) === null){
|
||||
$this->setLevel($this->server->getDefaultLevel());
|
||||
|
Loading…
x
Reference in New Issue
Block a user