mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
More work in the quest for greater recipe efficiency.
This commit is contained in:
1 parent
c6a77f9cfa
commit
c7a429177b
87 files changed
+1416
-1106
No files matched your search
@@ -122,7 +122,7 @@ public abstract class ChanceMachineRecipeHandler extends BaseRecipeHandler
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result)
|
||||
{
|
||||
for(ChanceMachineRecipe irecipe : getRecipes())
|
||||
for(ChanceMachineRecipe<?> irecipe : getRecipes())
|
||||
{
|
||||
if(irecipe.getOutput().hasPrimary() && NEIServerUtils.areStacksSameTypeCrafting(irecipe.getOutput().primaryOutput, result))
|
||||
{
|
||||
@@ -144,7 +144,7 @@ public abstract class ChanceMachineRecipeHandler extends BaseRecipeHandler
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient)
|
||||
{
|
||||
for(ChanceMachineRecipe irecipe : getRecipes())
|
||||
for(ChanceMachineRecipe<?> irecipe : getRecipes())
|
||||
{
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting((ItemStack)irecipe.getInput().ingredient, ingredient))
|
||||
{
|
||||
@@ -192,7 +192,7 @@ public abstract class ChanceMachineRecipeHandler extends BaseRecipeHandler
|
||||
output = chance;
|
||||
}
|
||||
|
||||
public CachedIORecipe(ChanceMachineRecipe recipe)
|
||||
public CachedIORecipe(ChanceMachineRecipe<?> recipe)
|
||||
{
|
||||
this(recipe.getInput().ingredient, recipe.getOutput());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user