From 490fdeac486d4bdca9ed58297ab099ba47efd5f6 Mon Sep 17 00:00:00 2001 From: jurrejelle Date: Mon, 25 May 2026 09:05:30 +0200 Subject: [PATCH 1/2] Set filter on inventory for pattern buffer --- .../integration/ae2/machine/MEPatternBufferPartMachine.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java index 0d7ff36cbfa..9ea260455d8 100644 --- a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java @@ -152,6 +152,8 @@ public MEPatternBufferPartMachine(BlockEntityCreationInfo info) { this.shareInventory = attachTrait(new NotifiableItemStackHandler(9, IO.IN, IO.NONE)); this.shareTank = attachTrait(new NotifiableFluidTank(9, 8 * FluidType.BUCKET_VOLUME, IO.IN, IO.NONE)); this.internalRecipeHandler = new InternalSlotRecipeHandler(this, internalInventory); + // inventory isn't used, so this is to prevent e.g. items being hoppered in and inaccessable. + this.getInventory().setFilter((ignored) -> false); } @Override From 132ea04af2929d7f4867f71fb83196db9ec028fa Mon Sep 17 00:00:00 2001 From: Jurre Groenendijk Date: Thu, 11 Jun 2026 18:54:33 +0200 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../integration/ae2/machine/MEPatternBufferPartMachine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java index 9ea260455d8..fe940b55229 100644 --- a/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java +++ b/src/main/java/com/gregtechceu/gtceu/integration/ae2/machine/MEPatternBufferPartMachine.java @@ -152,7 +152,7 @@ public MEPatternBufferPartMachine(BlockEntityCreationInfo info) { this.shareInventory = attachTrait(new NotifiableItemStackHandler(9, IO.IN, IO.NONE)); this.shareTank = attachTrait(new NotifiableFluidTank(9, 8 * FluidType.BUCKET_VOLUME, IO.IN, IO.NONE)); this.internalRecipeHandler = new InternalSlotRecipeHandler(this, internalInventory); - // inventory isn't used, so this is to prevent e.g. items being hoppered in and inaccessable. + // Inventory isn't used; prevent items being inserted (e.g., via hoppers) and becoming inaccessible. this.getInventory().setFilter((ignored) -> false); }