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

Commit

Permalink
fix 0 stack of nuclear rod (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored Oct 25, 2022
1 parent dd14041 commit a35a7bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/goodgenerator/items/FuelRod.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.util.GT_Utility;
import ic2.api.item.IBoxable;
import ic2.api.reactor.IReactor;
import ic2.api.reactor.IReactorComponent;
Expand Down Expand Up @@ -111,7 +112,7 @@ public void processChamber(IReactor reactor, ItemStack stack, int x, int y, bool
}
}
if (this.getCustomDamage(stack) >= this.getMaxCustomDamage(stack) - 1) {
reactor.setItemAt(x, y, result);
reactor.setItemAt(x, y, GT_Utility.copyAmount(1, result));
} else if (heatRun) {
this.applyCustomDamage(stack, 1, null);
}
Expand Down

0 comments on commit a35a7bf

Please sign in to comment.