Fix default hotbar mapping for W10

This commit is contained in:
Dylan K. Taylor 2016-12-20 21:18:37 +00:00
parent 17a418f133
commit 300a3d5ccd

View File

@ -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));
}