Fixed mechanical sieve inventory dupe glitch
This commit is contained in:
parent
53da238934
commit
02573eb1e4
|
|
@ -75,7 +75,7 @@ public class BarrelBlockEntity extends EBlockEntity {
|
||||||
public short compost;
|
public short compost;
|
||||||
// compost colors
|
// compost colors
|
||||||
public short r, g, b;
|
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;
|
private boolean isBeingFilledByPlayer;
|
||||||
|
|
||||||
public BarrelBlockEntity(BlockPos pos, BlockState state) {
|
public BarrelBlockEntity(BlockPos pos, BlockState state) {
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ public class MechanicalSieveMenu extends EContainerMenu {
|
||||||
var clickedStack = slot.getItem();
|
var clickedStack = slot.getItem();
|
||||||
stack = clickedStack.copy();
|
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)) {
|
if (!moveItemStackTo(clickedStack, NUM_SLOTS, PLAYER_SLOTS + NUM_SLOTS, true)) {
|
||||||
return ItemStack.EMPTY;
|
return ItemStack.EMPTY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user