mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Fix adventure settings not updated for GUI gamemode changes
This commit is contained in:
parent
367fa41161
commit
b1ce19856f
@ -1154,11 +1154,12 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
$pk = new SetPlayerGameTypePacket();
|
$pk = new SetPlayerGameTypePacket();
|
||||||
$pk->gamemode = $this->gamemode & 0x01;
|
$pk->gamemode = $this->gamemode & 0x01;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
$this->sendSettings();
|
|
||||||
}else{
|
}else{
|
||||||
Command::broadcastCommandMessage($this, new TranslationContainer("commands.gamemode.success.self", [Server::getGamemodeString($gm)]));
|
Command::broadcastCommandMessage($this, new TranslationContainer("commands.gamemode.success.self", [Server::getGamemodeString($gm)]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->sendSettings();
|
||||||
|
|
||||||
$this->inventory->sendContents($this);
|
$this->inventory->sendContents($this);
|
||||||
$this->inventory->sendContents($this->getViewers());
|
$this->inventory->sendContents($this->getViewers());
|
||||||
$this->inventory->sendHeldItem($this->hasSpawned);
|
$this->inventory->sendHeldItem($this->hasSpawned);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user