From cafad5eef58c3edee5c4cb7c14ff19101dd833b7 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Mon, 30 Jul 2012 14:19:54 -0700 Subject: [PATCH] I suppose capacity should scale too. --- common/buildcraft/factory/TileTank.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/factory/TileTank.java b/common/buildcraft/factory/TileTank.java index c4fd23ea..c08e2b82 100644 --- a/common/buildcraft/factory/TileTank.java +++ b/common/buildcraft/factory/TileTank.java @@ -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}; } }