Fixed energy status formating

Removed scientific notation on energy status when right clicking
This commit is contained in:
LemADEC 2014-10-02 02:06:52 +02:00
parent f925800e3c
commit 6af07ba4d4
2 changed files with 2 additions and 2 deletions

View file

@ -928,7 +928,7 @@ public class TileEntityReactor extends WarpEnergyTE
@Override
public String getStatus() {
return getBlockType().getLocalizedName() + " '" + coreFrequency + "' energy level is " + getEnergyStored() + " EU."
return getBlockType().getLocalizedName() + String.format(" '%s' energy level is %.0f/%.0f EU.", coreFrequency, convertInternalToEU(getEnergyStored()), convertInternalToEU(getMaxEnergyStored()))
+ ((cooldownTime > 0) ? ("\n" + (cooldownTime / 20) + " s left of cooldown.") : ((isolationBlocksCount > 0) ? ("\n" + isolationBlocksCount + " active isolation blocks") : ""));
}

View file

@ -145,7 +145,7 @@ public abstract class WarpEnergyTE extends WarpTE implements IEnergyHandler, IEn
public String getStatus() {
if (getMaxEnergyStored() != 0) {
return getBlockType().getLocalizedName() + " energy level is " + convertInternalToEU(getEnergyStored()) + "/" + convertInternalToEU(getMaxEnergyStored()) + " EU.";
return getBlockType().getLocalizedName() + String.format(" energy level is %.0f/%.0f EU.", convertInternalToEU(getEnergyStored()), convertInternalToEU(getMaxEnergyStored()));
} else {
return getBlockType().getLocalizedName();
}