mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-12 16:27:27 +00:00
Update Combiner.java
This commit is contained in:
1 parent
a6fe1cf8e2
commit
9b7f8fd1fa
1 file changed
-15
@@ -35,21 +35,6 @@ public class Combiner {
|
||||
public static final String name = "Mekanism Combiner";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack itemInput, IItemStack itemOutput, IGasStack gasInput) {
|
||||
if(itemInput == null || gasInput == null || itemOutput == null) {
|
||||
LogHelper.logError(String.format("Required parameters missing for %s Recipe.", name));
|
||||
return;
|
||||
}
|
||||
|
||||
AdvancedMachineInput input = new AdvancedMachineInput(toStack(itemInput), toGas(gasInput).getGas());
|
||||
ItemStackOutput output = new ItemStackOutput(toStack(itemOutput));
|
||||
CombinerRecipe recipe = new CombinerRecipe(input, output);
|
||||
|
||||
MineTweakerAPI.apply(new AddMekanismRecipe(name, Recipe.COMBINER.get(), recipe));
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@ZenMethod
|
||||
public static void addRecipe(IItemStack itemInput, IGasStack gasInput, IItemStack itemOutput) {
|
||||
|
||||
Reference in new issue
Block a user