mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 11:59:17 +00:00
Fixed WAILA tooltip of photo cell
* Energy storage is no longer added twice to the tooltip
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user