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;
|
return returned;
|
||||||
|
|
||||||
transportedStack = transportedStack.copy();
|
transportedStack = transportedStack.copy();
|
||||||
|
transportedStack.stack = inserted.copy();
|
||||||
transportedStack.beltPosition = side.getAxis()
|
transportedStack.beltPosition = side.getAxis()
|
||||||
.isVertical() ? .5f : 0;
|
.isVertical() ? .5f : 0;
|
||||||
transportedStack.prevSideOffset = transportedStack.sideOffset;
|
transportedStack.prevSideOffset = transportedStack.sideOffset;
|
||||||
|
@ -277,7 +278,7 @@ public class ItemDrainTileEntity extends SmartTileEntity implements IHaveGoggleI
|
||||||
heldItem = TransportedItemStack.read(compound.getCompound("HeldItem"));
|
heldItem = TransportedItemStack.read(compound.getCompound("HeldItem"));
|
||||||
super.read(compound, clientPacket);
|
super.read(compound, clientPacket);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
|
public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
|
||||||
if (side != null && side.getAxis()
|
if (side != null && side.getAxis()
|
||||||
|
|
Loading…
Reference in a new issue