Fix double chest identification (#11812)

This commit is contained in:
Lulu13022002
2024-12-24 22:57:24 +01:00
committed by GitHub
parent b8a0541ccf
commit 9e2d39cd26
3 changed files with 35 additions and 21 deletions

View File

@@ -16,10 +16,10 @@ public class CraftInventoryDoubleChest extends CraftInventory implements DoubleC
private final CraftInventory right;
public CraftInventoryDoubleChest(ChestBlock.DoubleInventory block) {
super(block.inventorylargechest);
super(block.container);
this.tile = block;
this.left = new CraftInventory(block.inventorylargechest.container1);
this.right = new CraftInventory(block.inventorylargechest.container2);
this.left = new CraftInventory(block.container.container1);
this.right = new CraftInventory(block.container.container2);
}
public CraftInventoryDoubleChest(CompoundContainer largeChest) {