Fixed Creative Inventory in MCPE 0.6 & & 0.7

This commit is contained in:
yefengeeeeeeeeeee 2026-07-10 14:00:16 +08:00
parent 1c117883ab
commit 7c60ca753a

View file

@ -1733,7 +1733,9 @@ class Player{
}
$pk->hotbar = $hotbar;
if(!(($this->gamemode === CREATIVE || $this->gamemode === VIEW) && $this->PROTOCOL <= ProtocolInfo12::CURRENT_PROTOCOL_12)){
$this->dataPacket($pk);
}
$this->sendingInventoryRequired = false;
}