Also fix the bug in fluid interface, fixes #369
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
- Added support for ore dictionary substitutions in Crafting Patterns (raoulvdberge)
|
- Added support for ore dictionary substitutions in Crafting Patterns (raoulvdberge)
|
||||||
- Added Disk Manipulator (way2muchnoise)
|
- Added Disk Manipulator (way2muchnoise)
|
||||||
- Added ingame config (way2muchnoise)
|
- Added ingame config (way2muchnoise)
|
||||||
- Added the ability to see the output of a Pattern by shift clicking (raoulvdberge)
|
- Added the ability to see the output of a Pattern by holding shift (raoulvdberge)
|
||||||
- When a machine is in use by a crafting pattern, inserting of items from other patterns will be avoided (raoulvdberge)
|
- When a machine is in use by a crafting pattern, inserting of items from other patterns will be avoided (raoulvdberge)
|
||||||
- Exporter in fluid mode no longer duplicates fluids that are less than 1 bucket (raoulvdberge)
|
- Exporter in fluid mode and Fluid Interface no longer duplicates fluids that are less than 1 bucket (raoulvdberge)
|
||||||
- Updated Dutch translation (raoulvdberge)
|
- Updated Dutch translation (raoulvdberge)
|
||||||
|
|
||||||
### 1.0.4
|
### 1.0.4
|
||||||
|
|||||||
@@ -119,13 +119,19 @@ public class TileFluidInterface extends TileNode implements IComparable {
|
|||||||
network.insertFluid(remainder, remainder.amount, false);
|
network.insertFluid(remainder, remainder.amount, false);
|
||||||
}
|
}
|
||||||
} else if (stack != null) {
|
} else if (stack != null) {
|
||||||
FluidStack result = network.extractFluid(stack, Fluid.BUCKET_VOLUME, compare);
|
FluidStack stackInStorage = network.getFluidStorage().get(stack, compare);
|
||||||
|
|
||||||
if (result != null) {
|
if (stackInStorage != null) {
|
||||||
int remainder = Fluid.BUCKET_VOLUME - tankOut.fillInternal(result, true);
|
int toExtract = Math.min(Fluid.BUCKET_VOLUME, stackInStorage.amount);
|
||||||
|
|
||||||
if (remainder > 0) {
|
FluidStack took = network.extractFluid(stack, toExtract, compare);
|
||||||
network.insertFluid(stack, remainder, false);
|
|
||||||
|
if (took != null) {
|
||||||
|
int remainder = toExtract - tankOut.fillInternal(took, true);
|
||||||
|
|
||||||
|
if (remainder > 0) {
|
||||||
|
network.insertFluid(took, remainder, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user