fix robots converting fluids when filling their tank, fixes #2729

This commit is contained in:
Hea3veN 2015-05-27 21:22:20 -03:00
parent b4f237c795
commit 1e679001f0
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
Bugs fixed:
* [#2729] fix robots converting fluids when filling their tank (hea3ven)

View file

@ -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);
}