Skip to content

Commit

Permalink
Another time that machines can do any recipe, :lets: (#1878)
Browse files Browse the repository at this point in the history
Co-authored-by: YoungOnionMC <[email protected]>
  • Loading branch information
YoungOnionMC and YoungOnionMC authored Sep 1, 2024
1 parent 80f57c9 commit 277dfc3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.gregtechceu.gtceu.api.recipe.modifier.RecipeModifier;
import com.gregtechceu.gtceu.common.capability.EnvironmentalHazardSavedData;
import com.gregtechceu.gtceu.config.ConfigHolder;
import com.gregtechceu.gtceu.utils.GTUtil;

import net.minecraft.MethodsReturnNonnullByDefault;
import net.minecraft.Util;
Expand Down Expand Up @@ -95,7 +94,7 @@ public ElectricOverclockModifier(OverclockingLogic overclockingLogic) {
public GTRecipe apply(MetaMachine machine, @NotNull GTRecipe recipe, @NotNull OCParams params,
@NotNull OCResult result) {
if (machine instanceof IOverclockMachine overclockMachine) {
if (GTUtil.getTierByVoltage(result.getEut()) > overclockMachine.getMaxOverclockTier()) {
if (RecipeHelper.getRecipeEUtTier(recipe) > overclockMachine.getMaxOverclockTier()) {
return null;
}

Expand Down

0 comments on commit 277dfc3

Please sign in to comment.