From 06dc9d17f93727408e21d906826c0c1ab3f30d49 Mon Sep 17 00:00:00 2001 From: TropheusJ Date: Fri, 20 May 2022 16:58:56 -0400 Subject: [PATCH] fix potential dupe glitch with stackable fluid containers happens on fabric in https://github.com/Fabricators-of-Create/Create/issues/296 --- .../contraptions/fluids/actors/ItemDrainTileEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/fluids/actors/ItemDrainTileEntity.java b/src/main/java/com/simibubi/create/content/contraptions/fluids/actors/ItemDrainTileEntity.java index d85ad6bb6..9fbdb599a 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/fluids/actors/ItemDrainTileEntity.java +++ b/src/main/java/com/simibubi/create/content/contraptions/fluids/actors/ItemDrainTileEntity.java @@ -76,6 +76,7 @@ public class ItemDrainTileEntity extends SmartTileEntity implements IHaveGoggleI return returned; transportedStack = transportedStack.copy(); + transportedStack.stack = inserted.copy(); transportedStack.beltPosition = side.getAxis() .isVertical() ? .5f : 0; transportedStack.prevSideOffset = transportedStack.sideOffset; @@ -277,7 +278,7 @@ public class ItemDrainTileEntity extends SmartTileEntity implements IHaveGoggleI heldItem = TransportedItemStack.read(compound.getCompound("HeldItem")); super.read(compound, clientPacket); } - + @Override public LazyOptional getCapability(Capability cap, Direction side) { if (side != null && side.getAxis()