Merge pull request #136 from CovertJaguar/patch-2
Added additional constructor for LiquidTank
This commit is contained in:
commit
d6dabd35ce
1 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,10 @@ public class LiquidTank implements ILiquidTank {
|
|||
private LiquidStack liquid;
|
||||
private int capacity;
|
||||
|
||||
public LiquidTank(int capacity) {
|
||||
this(null, capacity);
|
||||
}
|
||||
|
||||
public LiquidTank(int liquidId, int quantity, int capacity) {
|
||||
this(new LiquidStack(liquidId, quantity), capacity);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue