mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Merge branch 'stable' into next-minor
This commit is contained in:
commit
7d29ac8293
@ -1021,7 +1021,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
protected function internalSetGameMode(GameMode $gameMode) : void{
|
protected function internalSetGameMode(GameMode $gameMode) : void{
|
||||||
$this->gamemode = $gameMode;
|
$this->gamemode = $gameMode;
|
||||||
|
|
||||||
$this->allowFlight = $this->isCreative();
|
$this->allowFlight = $this->gamemode->equals(GameMode::CREATIVE());
|
||||||
$this->hungerManager->setEnabled($this->isSurvival());
|
$this->hungerManager->setEnabled($this->isSurvival());
|
||||||
|
|
||||||
if($this->isSpectator()){
|
if($this->isSpectator()){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user