Added additional constructor for LiquidTank
This commit is contained in:
parent
f4d5abafbd
commit
c98cd10e73
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