Fixed a crafting terminal exception

Closes #103
This commit is contained in:
Ell 2021-12-05 19:50:26 +01:00
parent 87a3c2aed6
commit 416e5ced97

View file

@ -27,14 +27,14 @@ public class CraftingTerminalContainer extends ItemTerminalContainer {
}
@Override
protected void addDataSlots(ContainerData data) {
protected void addOwnSlots(Player player) {
this.craftInventory = new WrappedCraftingInventory(this.getTile().craftItems, this, 3, 3);
this.craftResult = new ResultContainer();
this.addSlot(new ResultSlot(this.player, this.craftInventory, this.craftResult, 0, 25, 77));
this.addSlot(new ResultSlot(player, this.craftInventory, this.craftResult, 0, 25, 77));
for (var i = 0; i < 3; i++)
for (var j = 0; j < 3; j++)
this.addSlot(new Slot(this.craftInventory, j + i * 3, 7 + j * 18, 18 + i * 18));
super.addDataSlots(data);
super.addOwnSlots(player);
}
@Override