Merge pull request #3056 from TropheusJ/stackable-fluids-fix

fix potential dupe glitch with stackable fluid containers
This commit is contained in:
simibubi 2022-05-22 16:56:49 +02:00 committed by GitHub
commit 7d083495b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
if (side != null && side.getAxis()