Skip to content

Commit

Permalink
fix AL not running recipes without research properties (#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 authored Jun 14, 2023
1 parent 0173316 commit 028ec97
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import gregtech.api.recipes.Recipe;
import gregtech.api.recipes.RecipeMaps;
import gregtech.api.recipes.ingredients.GTRecipeInput;
import gregtech.api.recipes.recipeproperties.ResearchProperty;
import gregtech.api.util.GTUtility;
import gregtech.client.particle.GTLaserBeamParticle;
import gregtech.client.particle.GTParticleManager;
Expand Down Expand Up @@ -312,7 +313,7 @@ public boolean checkRecipe(@Nonnull Recipe recipe, boolean consumeIfSuccess) {
}
}

if (!ConfigHolder.machines.enableResearch) {
if (!ConfigHolder.machines.enableResearch || !recipe.hasProperty(ResearchProperty.getInstance())) {
return super.checkRecipe(recipe, consumeIfSuccess);
}

Expand Down

0 comments on commit 028ec97

Please sign in to comment.