mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 07:27:15 +01:00
Merge pull request #3056 from TropheusJ/stackable-fluids-fix
fix potential dupe glitch with stackable fluid containers
This commit is contained in:
commit
7d083495b0
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue