mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fixed NBT reference losses
This commit is contained in:
1 parent
e1a5bf13c7
commit
6340bb3cdc
9 files changed
+28
-14
No files matched your search
@@ -115,10 +115,18 @@ public final class PipeUtils
|
||||
}
|
||||
|
||||
ForgeDirection dir = ForgeDirection.getOrientation(Arrays.asList(possibleAcceptors).indexOf(acceptor)).getOpposite();
|
||||
toSend -= acceptor.fill(dir, new FluidStack(stack.getFluid(), currentSending), true);
|
||||
toSend -= acceptor.fill(dir, copy(stack, currentSending), true);
|
||||
}
|
||||
}
|
||||
|
||||
return prevSending-toSend;
|
||||
}
|
||||
|
||||
public static FluidStack copy(FluidStack fluid, int amount)
|
||||
{
|
||||
FluidStack ret = fluid.copy();
|
||||
ret.amount = amount;
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user