Fixed precedence problem (#1)

as mentioned in 4cb76f369a (commitcomment-19068812)
This commit is contained in:
SOFe 2016-09-18 17:35:40 +08:00 committed by Dylan K. Taylor
parent 900c4adb66
commit f2f70480ee

View File

@ -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());