Merge branch 'stable' into next-minor

This commit is contained in:
Dylan K. Taylor 2022-09-21 14:21:27 +01:00
commit 7d29ac8293
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

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