I suppose capacity should scale too.
This commit is contained in:
parent
aaa35f0c5e
commit
cafad5eef5
1 changed files with 7 additions and 2 deletions
|
@ -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};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue