This commit is contained in:
Dream-Master 2016-04-01 20:02:42 +02:00
parent aeb50268c7
commit c1a96e3356
2 changed files with 27 additions and 25 deletions

View file

@ -94,7 +94,7 @@ public class GT_RadioactiveCellIC_Item extends GT_RadioactiveCell_Item implement
{
if (sMox&&reactor.isFluidCooled())
{
float breedereffectiveness = reactor.getHeat() / reactor.getMaxHeat();
float breedereffectiveness = (float)reactor.getHeat() / (float)reactor.getMaxHeat();
if (breedereffectiveness > 0.5D) {
heat *= 2;
}

View file

@ -1,6 +1,7 @@
package gregtech.api.items;
import ic2.core.util.StackUtil;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
@ -41,6 +42,7 @@ public class GT_RadioactiveCell_Item
{
return (x * x + x) / 2;
}
protected boolean outputPulseForStack(ItemStack aStack) {
NBTTagCompound tNBT = aStack.getTagCompound();
if (tNBT == null) {
@ -133,8 +135,8 @@ public class GT_RadioactiveCell_Item
setDamageForStack(stack, getDamageOfStack(stack) + Dmg);
}
public void addAdditionalToolTips(List aList, ItemStack aStack) {
super.addAdditionalToolTips(aList, aStack);
public void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) {
super.addAdditionalToolTips(aList, aStack, aPlayer);
//aList.add("Time left: " + (this.maxDelay - getDurabilityOfStack(aStack)) + " secs");
aList.add("Durability: " + (this.maxDmg - getDurabilityOfStack(aStack)) + "/" + this.maxDmg);
}