Fixes #381 rubber ore dic issue
This commit is contained in:
parent
4c5cf82db4
commit
89d9dc99e2
2 changed files with 13 additions and 1 deletions
|
@ -6,6 +6,8 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
|
|
||||||
public class ExtractorRecipe extends BaseRecipe {
|
public class ExtractorRecipe extends BaseRecipe {
|
||||||
|
|
||||||
|
boolean useOreDic = true;
|
||||||
|
|
||||||
public ExtractorRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick) {
|
public ExtractorRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick) {
|
||||||
super(Reference.extractorRecipe, tickTime, euPerTick);
|
super(Reference.extractorRecipe, tickTime, euPerTick);
|
||||||
if (input1 != null)
|
if (input1 != null)
|
||||||
|
@ -13,9 +15,19 @@ public class ExtractorRecipe extends BaseRecipe {
|
||||||
if (output1 != null)
|
if (output1 != null)
|
||||||
addOutput(output1);
|
addOutput(output1);
|
||||||
}
|
}
|
||||||
|
public ExtractorRecipe(ItemStack input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDic) {
|
||||||
|
this(input1, output1, tickTime, euPerTick);
|
||||||
|
this.useOreDic = useOreDic;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUserFreindlyName() {
|
public String getUserFreindlyName() {
|
||||||
return "Extractor";
|
return "Extractor";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean useOreDic() {
|
||||||
|
return useOreDic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -348,7 +348,7 @@ public class ModRecipes
|
||||||
new ExtractorRecipe(ItemParts.getPartByName("rubberSap"), ItemParts.getPartByName("rubber", 3), 400,
|
new ExtractorRecipe(ItemParts.getPartByName("rubberSap"), ItemParts.getPartByName("rubber", 3), 400,
|
||||||
20));
|
20));
|
||||||
RecipeHandler.addRecipe(
|
RecipeHandler.addRecipe(
|
||||||
new ExtractorRecipe(new ItemStack(ModBlocks.rubberLog), ItemParts.getPartByName("rubber"), 400, 20));
|
new ExtractorRecipe(new ItemStack(ModBlocks.rubberLog), ItemParts.getPartByName("rubber"), 400, 20, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addIc2ReplacementReicpes()
|
static void addIc2ReplacementReicpes()
|
||||||
|
|
Loading…
Add table
Reference in a new issue