mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed Mana Pool catalyst usage
This commit is contained in:
1 parent
8bf4680c90
commit
0a1fe0a652
1 file changed
+12
-11
@@ -66,18 +66,19 @@ public class RecipeHandlerManaPool extends TemplateRecipeHandler {
|
||||
|
||||
@Override
|
||||
public boolean contains(Collection<PositionedStack> ingredients, ItemStack ingredient) {
|
||||
boolean skippedPool = false;
|
||||
for (PositionedStack stack : ingredients) {
|
||||
if (!skippedPool) {
|
||||
skippedPool = true;
|
||||
continue;
|
||||
}
|
||||
if (stack.contains(ingredient)) {
|
||||
return true;
|
||||
if (ingredients == this.inputs) {
|
||||
boolean skippedPool = false;
|
||||
for (PositionedStack stack : ingredients) {
|
||||
if (!skippedPool) {
|
||||
skippedPool = true;
|
||||
continue;
|
||||
}
|
||||
if (stack.contains(ingredient)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return super.contains(ingredients, ingredient);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -137,7 +138,7 @@ public class RecipeHandlerManaPool extends TemplateRecipeHandler {
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
for (RecipeManaInfusion recipe : BotaniaAPI.manaInfusionRecipes) {
|
||||
CachedManaPoolRecipe crecipe = new CachedManaPoolRecipe(recipe);
|
||||
if (crecipe.contains(crecipe.getIngredients(), ingredient)) {
|
||||
if (crecipe.contains(crecipe.getIngredients(), ingredient) || crecipe.contains(crecipe.getOtherStacks(), ingredient)) {
|
||||
arecipes.add(crecipe);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user