Skip to content

Commit

Permalink
feat: Ensure shift+clicking a filter on vacuum chest targets filter s…
Browse files Browse the repository at this point in the history
…lot first.
  • Loading branch information
Rover656 committed Sep 26, 2024
1 parent cb66072 commit a274b67
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit a274b67

Please sign in to comment.