Make universal cables display power a bit more nicely.
This commit is contained in:
parent
32f113ad77
commit
a92a05a720
2 changed files with 6 additions and 1 deletions
common/mekanism/common
|
@ -472,6 +472,6 @@ public class EnergyNetwork extends DynamicNetwork<TileEntity, EnergyNetwork>
|
|||
@Override
|
||||
public String getFlow()
|
||||
{
|
||||
return MekanismUtils.getEnergyDisplay(electricityStored);
|
||||
return MekanismUtils.getPowerDisplay(20*electricityStored);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1118,6 +1118,11 @@ public final class MekanismUtils
|
|||
return ElectricityDisplay.getDisplayShort((float)(energy*Mekanism.TO_UE), ElectricUnit.JOULES);
|
||||
}
|
||||
|
||||
public static String getPowerDisplay(double energy)
|
||||
{
|
||||
return ElectricityDisplay.getDisplayShort((float)(energy*Mekanism.TO_UE), ElectricUnit.WATT);
|
||||
}
|
||||
|
||||
public static boolean useBuildcraft()
|
||||
{
|
||||
return Mekanism.hooks.BuildCraftLoaded || Mekanism.forceBuildcraft;
|
||||
|
|
Loading…
Add table
Reference in a new issue