mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Add wildcard support to more recipes
Added wildcard for: - AdvancedmachineInput - InfusionInput - PressurizedInput
This commit is contained in:
1 parent
077d6fe34e
commit
9efd716ea0
4 files changed
+36
No files matched your search
@@ -287,6 +287,12 @@ public final class RecipeHandler
|
||||
HashMap<InfusionInput, MetallurgicInfuserRecipe> recipes = Recipe.METALLURGIC_INFUSER.get();
|
||||
|
||||
MetallurgicInfuserRecipe recipe = recipes.get(input);
|
||||
|
||||
if(recipe == null)
|
||||
{
|
||||
recipe = recipes.get(input.wildCopy());
|
||||
}
|
||||
|
||||
return recipe == null ? null : recipe.copy();
|
||||
}
|
||||
|
||||
@@ -427,6 +433,12 @@ public final class RecipeHandler
|
||||
if(input.isValid())
|
||||
{
|
||||
RECIPE recipe = recipes.get(input);
|
||||
|
||||
if(recipe == null)
|
||||
{
|
||||
recipe = recipes.get(input.wildCopy());
|
||||
}
|
||||
|
||||
return recipe == null ? null : recipe.copy();
|
||||
}
|
||||
|
||||
@@ -484,6 +496,12 @@ public final class RecipeHandler
|
||||
HashMap<PressurizedInput, PressurizedRecipe> recipes = Recipe.PRESSURIZED_REACTION_CHAMBER.get();
|
||||
|
||||
PressurizedRecipe recipe = recipes.get(input);
|
||||
|
||||
if(recipe == null)
|
||||
{
|
||||
recipe = recipes.get(input.wildCopy());
|
||||
}
|
||||
|
||||
return recipe == null ? null : recipe.copy();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user