Fixed Industrial Sawmill recipe constructor (fixes compiler error)
This commit is contained in:
parent
a6fcd15082
commit
496d8c4ba2
1 changed files with 19 additions and 1 deletions
|
@ -10,6 +10,8 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
|||
|
||||
public FluidStack fluidStack;
|
||||
|
||||
public boolean canUseOreDict = false;
|
||||
|
||||
public IndustrialSawmillRecipe(ItemStack input1, ItemStack input2, FluidStack fluidStack, ItemStack output1, ItemStack output2, ItemStack output3, int tickTime, int euPerTick) {
|
||||
super("industrialSawmillRecipe", tickTime, euPerTick);
|
||||
if (input1 != null)
|
||||
|
@ -25,6 +27,22 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
|||
this.fluidStack = fluidStack;
|
||||
}
|
||||
|
||||
public IndustrialSawmillRecipe(ItemStack input1, ItemStack input2, FluidStack fluidStack, ItemStack output1, ItemStack output2, ItemStack output3, int tickTime, int euPerTick, boolean canUseOreDict) {
|
||||
super("industrialSawmillRecipe", tickTime, euPerTick);
|
||||
if (input1 != null)
|
||||
inputs.add(input1);
|
||||
if (input2 != null)
|
||||
inputs.add(input2);
|
||||
if (output1 != null)
|
||||
addOutput(output1);
|
||||
if (output2 != null)
|
||||
addOutput(output2);
|
||||
if (output3 != null)
|
||||
addOutput(output3);
|
||||
this.fluidStack = fluidStack;
|
||||
this.canUseOreDict = canUseOreDict;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCraft(TileEntity tile) {
|
||||
if (fluidStack == null) {
|
||||
|
@ -70,6 +88,6 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
|||
|
||||
@Override
|
||||
public boolean useOreDic() {
|
||||
return false;
|
||||
return canUseOreDict;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue