mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Fix default hotbar mapping for W10
This commit is contained in:
parent
17a418f133
commit
300a3d5ccd
@ -40,7 +40,7 @@ class PlayerInventory extends BaseInventory{
|
|||||||
protected $hotbar;
|
protected $hotbar;
|
||||||
|
|
||||||
public function __construct(Human $player){
|
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));
|
parent::__construct($player, InventoryType::get(InventoryType::PLAYER));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user