aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 03:34:10 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 03:34:10 +0100
commit7d0223d1cbc09909b8989c8aea2576a171acdaea (patch)
tree4d1024f7375c11ba15f5dd348fd4503aae1ddd7d /src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
parent319654afd68440c9cbc2eedd3ae4718b5c045519 (diff)
downloadskyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.tar.gz
skyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.tar.bz2
skyhanni-7d0223d1cbc09909b8989c8aea2576a171acdaea.zip
replaced "text to render" to "display"
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 3697838c7..ff28c52ab 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -430,20 +430,20 @@ object RenderUtils {
if (string == null) return
if (string == "") return
- val textToRender = "§f$string"
+ val display = "§f$string"
GlStateManager.pushMatrix()
val resolution = ScaledResolution(minecraft)
val renderer = minecraft.renderManager.fontRenderer ?: return
- val offsetX = (200 - renderer.getStringWidth(textToRender.removeColor())) / 2
+ val offsetX = (200 - renderer.getStringWidth(display.removeColor())) / 2
val x = getAbsX(resolution, 200) + offsetX
val y = getAbsY(resolution, 16) + offsetY
GlStateManager.translate(x + 1.0, y + 1.0, 0.0)
- renderer.drawStringWithShadow(textToRender, 0f, 0f, 0)
+ renderer.drawStringWithShadow(display, 0f, 0f, 0)
GlStateManager.popMatrix()
}