From a274b6759c8d48952870a402df3d7e6b289c506f Mon Sep 17 00:00:00 2001 From: Reece Mackie <20544390+Rover656@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:28:31 +0100 Subject: [PATCH] feat: Ensure shift+clicking a filter on vacuum chest targets filter slot first. --- .../com/enderio/machines/common/menu/VacuumChestMenu.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/enderio-machines/src/main/java/com/enderio/machines/common/menu/VacuumChestMenu.java b/enderio-machines/src/main/java/com/enderio/machines/common/menu/VacuumChestMenu.java index 397d2ed189..ce8a0dcdaf 100644 --- a/enderio-machines/src/main/java/com/enderio/machines/common/menu/VacuumChestMenu.java +++ b/enderio-machines/src/main/java/com/enderio/machines/common/menu/VacuumChestMenu.java @@ -1,6 +1,7 @@ package com.enderio.machines.common.menu; import com.enderio.machines.common.blockentity.VacuumChestBlockEntity; +import com.enderio.machines.common.blockentity.base.VacuumMachineBlockEntity; import com.enderio.machines.common.init.MachineMenus; import com.enderio.machines.common.menu.base.MachineMenu; import net.minecraft.network.FriendlyByteBuf; @@ -15,12 +16,13 @@ public VacuumChestMenu(int pContainerId, @Nullable VacuumChestBlockEntity blockE super(MachineMenus.VACUUM_CHEST.get(), pContainerId, blockEntity, inventory); if (blockEntity != null) { + this.addSlot(new MachineSlot(getMachineInventory(), VacuumMachineBlockEntity.FILTER, 8, 86)); + for (int j = 0; j < 3; ++j) { for (int k = 0; k < 9; ++k) { this.addSlot(new MachineSlot(getMachineInventory(), k + j * 9, 8 + k * 18, 18 + j * 18)); } } - this.addSlot(new MachineSlot(getMachineInventory(), 27, 8, 86)); } addPlayerInventorySlots(8, 124);