Fixed mechanical sieve inventory dupe glitch

This commit is contained in:
thedarkcolour 2024-01-23 17:32:44 -08:00
parent 53da238934
commit 02573eb1e4
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;
}