diff --git a/src/player/Player.php b/src/player/Player.php index 336ff6f8c..7a32e7a48 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -1021,7 +1021,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ protected function internalSetGameMode(GameMode $gameMode) : void{ $this->gamemode = $gameMode; - $this->allowFlight = $this->isCreative(); + $this->allowFlight = $this->gamemode->equals(GameMode::CREATIVE()); $this->hungerManager->setEnabled($this->isSurvival()); if($this->isSpectator()){