mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-18 07:53:07 +01:00
fix potential dupe glitch with stackable fluid containers
happens on fabric in https://github.com/Fabricators-of-Create/Create/issues/296
This commit is contained in:
parent
d8dd101fdf
commit
06dc9d17f9
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