From a6c0f1512c1391a8a7fb1370a2a64e500e453f3a Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 2 Sep 2017 11:07:14 +0100 Subject: [PATCH] Send the hotbar instead of contents when resetting hotbar This used to be fine before 1.2, but now hotbar is handled separately. --- src/pocketmine/inventory/PlayerInventory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/inventory/PlayerInventory.php b/src/pocketmine/inventory/PlayerInventory.php index c4ac2804d7..0e4d92b990 100644 --- a/src/pocketmine/inventory/PlayerInventory.php +++ b/src/pocketmine/inventory/PlayerInventory.php @@ -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(); } }