fix robots converting fluids when filling their tank, fixes #2729
This commit is contained in:
parent
b4f237c795
commit
1e679001f0
2 changed files with 7 additions and 0 deletions
3
buildcraft_resources/changelog/6.4.17
Normal file
3
buildcraft_resources/changelog/6.4.17
Normal file
|
@ -0,0 +1,3 @@
|
|||
Bugs fixed:
|
||||
|
||||
* [#2729] fix robots converting fluids when filling their tank (hea3ven)
|
|
@ -1178,6 +1178,10 @@ public class EntityRobot extends EntityRobotBase implements
|
|||
public int fill(ForgeDirection from, FluidStack resource, boolean doFill) {
|
||||
int result = 0;
|
||||
|
||||
if (tank != null && !tank.isFluidEqual(resource)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (tank == null) {
|
||||
tank = new FluidStack(resource.getFluid(), 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue