mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Send the hotbar instead of contents when resetting hotbar
This used to be fine before 1.2, but now hotbar is handled separately.
This commit is contained in:
parent
604d8ecf9a
commit
a6c0f1512c
@ -178,7 +178,7 @@ class PlayerInventory extends BaseInventory{
|
||||
public function resetHotbar(bool $send = true){
|
||||
$this->hotbar = \SplFixedArray::fromArray(range(0, $this->getHotbarSize() - 1, 1));
|
||||
if($send){
|
||||
$this->sendContents($this->getHolder());
|
||||
$this->sendHotbar();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user