From 300a3d5ccd523a9aa6d26f0a93464654158d9861 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 20 Dec 2016 21:18:37 +0000 Subject: [PATCH] Fix default hotbar mapping for W10 --- 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 392331737..5ab19a0ae 100644 --- a/src/pocketmine/inventory/PlayerInventory.php +++ b/src/pocketmine/inventory/PlayerInventory.php @@ -40,7 +40,7 @@ class PlayerInventory extends BaseInventory{ protected $hotbar; public function __construct(Human $player){ - $this->hotbar = array_fill(0, $this->getHotbarSize(), -1); + $this->hotbar = range(0, $this->getHotbarSize() - 1, 1); parent::__construct($player, InventoryType::get(InventoryType::PLAYER)); }