diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index bab653f68..7e56be09e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -791,15 +791,5 @@ object RenderUtils { GlStateManager.enableDepth() } - /** - * Taken from NotEnoughUpdates - */ - fun drawStringCentered(str: String?, fr: FontRenderer, x: Float, y: Float, shadow: Boolean, colour: Int) { - val strLen = fr.getStringWidth(str) - val x2 = x - strLen / 2f - val y2 = y - fr.FONT_HEIGHT / 2f - GL11.glTranslatef(x2, y2, 0f) - fr.drawString(str, 0f, 0f, colour, shadow) - GL11.glTranslatef(-x2, -y2, 0f) - } -}
\ No newline at end of file + +} |