Skip to content

Commit

Permalink
Merge pull request #749 from Nxer/fix
Browse files Browse the repository at this point in the history
fix bug in Lightning Spire rod output
  • Loading branch information
Nxer authored Jan 23, 2025
2 parents f81392f + 7aec50f commit 25180da
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.Nxer.TwistSpaceTechnology.common.misc.CheckRecipeResults.CheckRecipeResults;
import com.Nxer.TwistSpaceTechnology.common.misc.MachineShutDownReasons.SimpleShutDownReasons;
import com.Nxer.TwistSpaceTechnology.util.TextLocalization;
import com.Nxer.TwistSpaceTechnology.util.Utils;
import com.Nxer.TwistSpaceTechnology.util.rewrites.TST_ItemID;
import com.gtnewhorizon.structurelib.alignment.constructable.IConstructable;
import com.gtnewhorizon.structurelib.alignment.constructable.ISurvivalConstructable;
Expand Down Expand Up @@ -315,12 +316,12 @@ public CheckRecipeResult checkProcessing_EM() {
if (null == machine || machine.stackSize < 1) continue;
if (LightningRod.equalItemStack(machine)) {
if (canAdd > machine.stackSize) {
mStored.add(GTUtility.copy(machine));
mStored.add(machine.copy());
tRods += machine.stackSize;
canAdd -= machine.stackSize;
machine.stackSize = 0;
} else {
mStored.add(GTUtility.copyAmount(MAXRODS - tRods, machine));
mStored.add(Utils.copyAmount(MAXRODS - tRods, machine));
machine.stackSize -= canAdd;
tRods = MAXRODS;
break;
Expand Down

0 comments on commit 25180da

Please sign in to comment.