Fix iridium neutron reflector behavior (#1348)
This commit is contained in:
parent
a3f1b52759
commit
8a1f56d908
1 changed files with 1 additions and 11 deletions
|
@ -18,17 +18,7 @@ public class GT_NeutronReflector_Item
|
||||||
|
|
||||||
public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, int pulseX, int pulseY, boolean heatrun) {
|
public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, int pulseX, int pulseY, boolean heatrun) {
|
||||||
if (!heatrun) {
|
if (!heatrun) {
|
||||||
if (!GregTech_API.mIC2Classic&&(pulsingStack.getItem() instanceof ic2.core.item.reactor.ItemReactorMOX)) {
|
((IReactorComponent) pulsingStack.getItem()).acceptUraniumPulse(reactor, pulsingStack, yourStack, pulseX, pulseY, youX, youY, heatrun);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue