mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
DoubleChestInventory: Fixed items getting rearranged in single chests when creating a double chest
I fixed this elsewhere more than 18 months ago, why is this still here?
This commit is contained in:
@ -36,7 +36,7 @@ class DoubleChestInventory extends ChestInventory implements InventoryHolder{
|
|||||||
public function __construct(Chest $left, Chest $right){
|
public function __construct(Chest $left, Chest $right){
|
||||||
$this->left = $left->getRealInventory();
|
$this->left = $left->getRealInventory();
|
||||||
$this->right = $right->getRealInventory();
|
$this->right = $right->getRealInventory();
|
||||||
$items = array_merge($this->left->getContents(), $this->right->getContents());
|
$items = array_merge($this->left->getContents(true), $this->right->getContents(true));
|
||||||
BaseInventory::__construct($items);
|
BaseInventory::__construct($items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user