Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Check all slots for available circuits instead of only the first
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelotrio committed Nov 9, 2023
1 parent d39cbe7 commit 795e0a6
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import gregtech.api.recipe.check.CheckRecipeResultRegistry;
import gregtech.api.recipe.check.SimpleCheckRecipeResult;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_Utility;
import gregtech.common.tileentities.machines.GT_MetaTileEntity_Hatch_OutputBus_ME;
import gregtech.common.tileentities.machines.GT_MetaTileEntity_Hatch_Output_ME;

Expand Down Expand Up @@ -1103,11 +1104,11 @@ private long getHeliumStored() {
public CheckRecipeResult processRecipe(EyeOfHarmonyRecipe recipeObject) {

// Get circuit damage, clamp it and then use it later for overclocking.
ItemStack circuit = mInputBusses.get(0).getStackInSlot(0);
if (circuit != null) {
currentCircuitMultiplier = (long) clamp(circuit.getItemDamage(), 0, 24);
} else {
currentCircuitMultiplier = 0;
for (ItemStack itemStack : mInputBusses.get(0).getRealInventory()) {
if (GT_Utility.isAnyIntegratedCircuit(itemStack)) {
currentCircuitMultiplier = (long) clamp(itemStack.getItemDamage(), 0, 24);
break;
}
}

// Debug mode, overwrites the required fluids to initiate the recipe to 100L of each.
Expand Down

0 comments on commit 795e0a6

Please sign in to comment.