Skip to content

Commit

Permalink
Fix iridium neutron reflector behavior (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antifluxfield authored and Blood-Asp committed Feb 10, 2018
1 parent a3f1b52 commit 8a1f56d
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ public GT_NeutronReflector_Item(String aUnlocalized, String aEnglish, int aMaxDa

public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, int pulseX, int pulseY, boolean heatrun) {
if (!heatrun) {
if (!GregTech_API.mIC2Classic&&(pulsingStack.getItem() instanceof ic2.core.item.reactor.ItemReactorMOX)) {
float breedereffectiveness = reactor.getHeat() / reactor.getMaxHeat();
float ReaktorOutput = 4.0F * breedereffectiveness + 1.0F;
reactor.addOutput(ReaktorOutput);
} else {
float tEnergy = 1.0f;
if (pulsingStack.getItem() instanceof GT_RadioactiveCellIC_Item) {
tEnergy = (float) ((GT_RadioactiveCellIC_Item) pulsingStack.getItem()).sEnergy;
}
reactor.addOutput(tEnergy);
}
((IReactorComponent) pulsingStack.getItem()).acceptUraniumPulse(reactor, pulsingStack, yourStack, pulseX, pulseY, youX, youY, heatrun);
}
return true;
}
Expand Down

0 comments on commit 8a1f56d

Please sign in to comment.