diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-12-29 14:42:13 +0100 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-12-29 14:42:13 +0100 |
commit | 9362235140add1620d9076e6221ecc1242035548 (patch) | |
tree | 4f065935c2c49c8ad7edc368caa38681237d3e01 | |
parent | efbf251938c344dc7c73c5042c9ed04edc06b938 (diff) | |
download | GT5-Unofficial-9362235140add1620d9076e6221ecc1242035548.tar.gz GT5-Unofficial-9362235140add1620d9076e6221ecc1242035548.tar.bz2 GT5-Unofficial-9362235140add1620d9076e6221ecc1242035548.zip |
fix mox output not rising with heat
-rw-r--r-- | src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java index e9e9ce517b..2cd0c0d3b5 100644 --- a/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java +++ b/src/main/java/gregtech/api/items/GT_RadioactiveCellIC_Item.java @@ -84,16 +84,6 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement } } if (getDamageOfStack(yourStack) >= getMaxDamageEx() - 1) { -// switch (this.numberOfCells) { -// case 1: -// reactor.setItemAt(x, y, ItemList.Depleted_Thorium_1.get(1, new Object[0])); -// break; -// case 2: -// reactor.setItemAt(x, y, ItemList.Depleted_Thorium_2.get(1, new Object[0])); -// break; -// case 4: -// reactor.setItemAt(x, y, ItemList.Depleted_Thorium_4.get(1, new Object[0])); -// } reactor.setItemAt(x, y, sDepleted.copy()); } else if (heatrun) { damageItemStack(yourStack, 1); @@ -121,9 +111,9 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement } public boolean acceptUraniumPulse(IReactor reactor, ItemStack yourStack, ItemStack pulsingStack, int youX, int youY, int pulseX, int pulseY, boolean heatrun) { - if (!heatrun) { + if (!heatrun) { if(sMox){ - float breedereffectiveness = reactor.getHeat() / reactor.getMaxHeat(); + float breedereffectiveness = (float)reactor.getHeat() / (float)reactor.getMaxHeat(); float ReaktorOutput = 1.5F * breedereffectiveness + 1.0F; reactor.addOutput(ReaktorOutput * this.sEnergy); }else{ |