Skip to content

Commit

Permalink
fix recipes having null cleanrooms (GregTechCEu#2625)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 authored Sep 22, 2024
1 parent efd8617 commit 8a062da
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/gregtech/api/recipes/RecipeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,9 @@ protected RecipeBuilder(RecipeBuilder<R> recipeBuilder) {
}

public R cleanroom(@Nullable CleanroomType cleanroom) {
if (!ConfigHolder.machines.enableCleanroom) {
return (R) this;
if (ConfigHolder.machines.enableCleanroom && cleanroom != null) {
this.applyProperty(CleanroomProperty.getInstance(), cleanroom);
}
this.applyProperty(CleanroomProperty.getInstance(), cleanroom);
return (R) this;
}

Expand Down

0 comments on commit 8a062da

Please sign in to comment.