Skip to content

Commit

Permalink
Improve tooltip formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlamonster committed Feb 26, 2025
1 parent 8f5f50a commit 9ccad80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/li/cil/oc/common/block/Transposer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import cpw.mods.fml.relauncher.SideOnly
import li.cil.oc.Settings
import li.cil.oc.client.Textures
import li.cil.oc.common.tileentity
import li.cil.oc.integration.util.NEI
import net.minecraft.client.renderer.texture.IIconRegister
import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.player.EntityPlayer
Expand All @@ -15,6 +14,7 @@ import net.minecraft.world.IBlockAccess
import net.minecraft.world.World
import net.minecraftforge.common.util.ForgeDirection

import java.text.NumberFormat
import java.util
import scala.reflect.ClassTag

Expand Down Expand Up @@ -68,7 +68,7 @@ class Transposer(protected implicit val tileTag: ClassTag[tileentity.Transposer]
else
Settings.get.transposerFluidTransferRate

tooltip.add(s"Transfers up to ${transferRate}L/s.")
tooltip.add(s"Transfers up to ${NumberFormat.getIntegerInstance.format(transferRate)}L/s.")
super.tooltipBody(metadata, stack, player, tooltip, advanced)
}
}

0 comments on commit 9ccad80

Please sign in to comment.