mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Protocol changes for 1.2.0.25
This commit is contained in:
@ -185,7 +185,7 @@ class PlayerInventory extends BaseInventory{
|
||||
public function sendHotbar(){
|
||||
$pk = new PlayerHotbarPacket();
|
||||
$pk->windowId = ContainerIds::INVENTORY;
|
||||
$pk->selectedSlot = $this->getHeldItemIndex();
|
||||
$pk->selectedHotbarSlot = $this->getHeldItemIndex();
|
||||
$pk->slots = array_map(function(int $link){ return $link + $this->getHotbarSize(); }, $this->getHotbar());
|
||||
$this->getHolder()->dataPacket($pk);
|
||||
}
|
||||
|
Reference in New Issue
Block a user