I suppose capacity should scale too.

This commit is contained in:
CovertJaguar 2012-07-30 14:19:54 -07:00
parent aaa35f0c5e
commit cafad5eef5

View file

@ -208,10 +208,13 @@ public class TileTank extends TileBuildCraft implements ITankContainer
TileTank tile = getBottomTank();
if(tile != null && tile.tank.getLiquid() != null)
int capacity = tank.getCapacity();
if(tile != null && tile.tank.getLiquid() != null) {
compositeTank.setLiquid(tile.tank.getLiquid().copy());
else
} else {
return new ILiquidTank[]{compositeTank};
}
tile = getTankAbove(tile);
@ -221,10 +224,12 @@ public class TileTank extends TileBuildCraft implements ITankContainer
break;
compositeTank.getLiquid().amount += tile.tank.getLiquid().amount;
capacity += tile.tank.getCapacity();
tile = getTankAbove(tile);
}
compositeTank.setCapacity(capacity);
return new ILiquidTank[]{compositeTank};
}
}