mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixes
This commit is contained in:
parent
0cfcbf1a97
commit
a4b067616a
@ -15,14 +15,8 @@ float target;
|
||||
|
||||
@Override
|
||||
public float modify(ItemStack stack, EntityLivingBase holder, float level) {
|
||||
|
||||
if(stack.getItem() instanceof ItemFuelRod) {
|
||||
ItemFuelRod fuel = (ItemFuelRod) stack.getItem();
|
||||
double depletion = Math.pow(fuel.getDurabilityForDisplay(stack), 0.4D);
|
||||
|
||||
level = (float) (level + (this.target - level) * depletion);
|
||||
|
||||
}
|
||||
double depletion = Math.pow(stack.getItem().getDurabilityForDisplay(stack), 0.4D);
|
||||
level = (float) (level + (this.target - level) * depletion);
|
||||
|
||||
return level;
|
||||
}
|
||||
|
||||
@ -65,6 +65,11 @@ public class ItemZirnoxRod extends ItemEnumMulti {
|
||||
EnumZirnoxType num = EnumUtil.grabEnumSafely(theEnum, stack.getItemDamage());
|
||||
String[] loc = I18nUtil.resolveKeyArray("desc.item.zirnox" + (num.breeding ? "BreedingRod" : "Rod"), BobMathUtil.getShortNumber(num.maxLife));
|
||||
|
||||
if(num.breeding)
|
||||
loc = I18nUtil.resolveKeyArray("desc.item.zirnoxBreedingRod", BobMathUtil.getShortNumber(num.maxLife));
|
||||
else
|
||||
loc = I18nUtil.resolveKeyArray("desc.item.zirnoxRod", num.heat, BobMathUtil.getShortNumber(num.maxLife));
|
||||
|
||||
for(String s : loc) {
|
||||
list.add(s);
|
||||
}
|
||||
|
||||
@ -298,7 +298,7 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
|
||||
|
||||
for(int i = 0; i < decay; i++) {
|
||||
this.heat += num.heat;
|
||||
ItemZirnoxRod.incrementLifeTime(slots[id]);;
|
||||
ItemZirnoxRod.incrementLifeTime(slots[id]);
|
||||
|
||||
if(ItemZirnoxRod.getLifeTime(slots[id]) > num.maxLife) {
|
||||
slots[id] = fuelMap.get(new ComparableStack(getStackInSlot(id))).copy();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user