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:
Dylan K. Taylor 2017-09-02 11:07:14 +01:00
parent 604d8ecf9a
commit a6c0f1512c

View File

@ -178,7 +178,7 @@ class PlayerInventory extends BaseInventory{
public function resetHotbar(bool $send = true){ public function resetHotbar(bool $send = true){
$this->hotbar = \SplFixedArray::fromArray(range(0, $this->getHotbarSize() - 1, 1)); $this->hotbar = \SplFixedArray::fromArray(range(0, $this->getHotbarSize() - 1, 1));
if($send){ if($send){
$this->sendContents($this->getHolder()); $this->sendHotbar();
} }
} }