From 02573eb1e403a78f53586423a747ff28cc5b067a Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Tue, 23 Jan 2024 17:32:44 -0800 Subject: [PATCH] Fixed mechanical sieve inventory dupe glitch --- .../thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java | 2 +- .../java/thedarkcolour/exdeorum/menu/MechanicalSieveMenu.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java b/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java index 18cdf4d2..749c1004 100644 --- a/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java +++ b/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java @@ -75,7 +75,7 @@ public class BarrelBlockEntity extends EBlockEntity { public short compost; // compost colors public short r, g, b; - // used to avoid obsidian dupe + // Used to avoid triggering obsidian dupes in onContentsChanged, because Forge's FluidUtil actually modifies the tank for some reason private boolean isBeingFilledByPlayer; public BarrelBlockEntity(BlockPos pos, BlockState state) { diff --git a/src/main/java/thedarkcolour/exdeorum/menu/MechanicalSieveMenu.java b/src/main/java/thedarkcolour/exdeorum/menu/MechanicalSieveMenu.java index 056283cc..c78b20e4 100644 --- a/src/main/java/thedarkcolour/exdeorum/menu/MechanicalSieveMenu.java +++ b/src/main/java/thedarkcolour/exdeorum/menu/MechanicalSieveMenu.java @@ -122,7 +122,7 @@ public class MechanicalSieveMenu extends EContainerMenu { var clickedStack = slot.getItem(); stack = clickedStack.copy(); - if (clickedSlot > 1 && clickedSlot <= NUM_SLOTS) { // moving out of output slots + if (clickedSlot > 1 && clickedSlot < NUM_SLOTS) { // moving out of output slots if (!moveItemStackTo(clickedStack, NUM_SLOTS, PLAYER_SLOTS + NUM_SLOTS, true)) { return ItemStack.EMPTY; }