Fixed WAILA tooltip of photo cell

* Energy storage is no longer added twice to the tooltip
This commit is contained in:
HenryLoenwind committed 2015-02-07 17:02:52 +01:00
1 parent 87d7701ec0
commit c819c0db41
1 file changed
-3
@@ -140,9 +140,6 @@ public class BlockSolarPanel extends BlockEio implements IResourceTooltipProvide
if(te instanceof TileEntitySolarPanel) {
TileEntitySolarPanel solar = (TileEntitySolarPanel) te;
float efficiency = solar.calculateLightRatio();
EnergyStorage storage = new EnergyStorage(Integer.MAX_VALUE);
storage.readFromNBT(WailaCompat.getNBTData());
tooltip.add(storage.getEnergyStored() + " / " + WailaCompat.getNBTData().getInteger("rfCap") + " RF");
tooltip.add(String.format("%s : %s%.0f%%", EnumChatFormatting.WHITE + Lang.localize("tooltip.efficiency") + EnumChatFormatting.RESET,
EnumChatFormatting.WHITE, efficiency * 100));
}