mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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:
parent
fd5557861b
commit
b0d0932ed9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user