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:
Dylan K. Taylor 2018-01-23 15:50:13 +00:00
parent fd5557861b
commit b0d0932ed9

View File

@ -36,7 +36,7 @@ class DoubleChestInventory extends ChestInventory implements InventoryHolder{
public function __construct(Chest $left, Chest $right){
$this->left = $left->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);
}