parent
5f73df956e
commit
d10e71863b
2 changed files with 23 additions and 14 deletions
|
@ -40,6 +40,8 @@ public class GT_CoolantCellIC_Item extends GT_CoolantCell_Item implements IReact
|
|||
@Override
|
||||
public int alterHeat(IReactor aReactor, ItemStack aStack, int x, int y, int aHeat) {
|
||||
int tHeat = getHeatOfStack(aStack);
|
||||
|
||||
if (!aReactor.isFluidCooled() || aHeat > 0) {
|
||||
tHeat += aHeat;
|
||||
|
||||
if (tHeat > heatStorage) {
|
||||
|
@ -54,6 +56,8 @@ public class GT_CoolantCellIC_Item extends GT_CoolantCell_Item implements IReact
|
|||
}
|
||||
setHeatForStack(aStack, tHeat);
|
||||
}
|
||||
}
|
||||
|
||||
return aHeat;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,12 @@ public class GT_CoolantCell_Item extends GT_Generic_Item {
|
|||
@Override
|
||||
public void addAdditionalToolTips(List aList, ItemStack aStack) {
|
||||
super.addAdditionalToolTips(aList, aStack);
|
||||
aList.add(I18n.format("item.coolant.stored.tooltip", getHeatOfStack(aStack)));
|
||||
int heat = getHeatOfStack(aStack);
|
||||
if (heat > 0) {
|
||||
aList.add(I18n.format("ic2.reactoritem.heatwarning.line1"));
|
||||
aList.add(I18n.format("ic2.reactoritem.heatwarning.line2"));
|
||||
}
|
||||
aList.add(I18n.format("item.coolant.stored.tooltip", heat));
|
||||
}
|
||||
|
||||
protected static int getHeatOfStack(ItemStack aStack) {
|
||||
|
|
Loading…
Reference in a new issue