diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2023-03-29 21:59:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 21:59:35 +0200 |
commit | f9850125f8bf12abd37f8246c5250d0edc4edd49 (patch) | |
tree | 9607abb880d04125226befcf946cbfebbac7e2ae /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 073bb8d1f139b98508cd21dae6fc377fcc7c9230 (diff) | |
parent | ed2dfa0bfd7a6d69a2eb7349009625991e363fee (diff) | |
download | skyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.tar.gz skyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.tar.bz2 skyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.zip |
Merge pull request #22
The non controversial config changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt index 1d24ff1e9..491b73d31 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt @@ -1,11 +1,11 @@ package at.hannibal2.skyhanni.utils import at.hannibal2.skyhanni.config.core.config.Position -import at.hannibal2.skyhanni.config.core.util.render.TextRenderUtils.drawStringScaled import at.hannibal2.skyhanni.data.GuiEditManager import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsX import at.hannibal2.skyhanni.data.GuiEditManager.Companion.getAbsY import at.hannibal2.skyhanni.utils.NEUItems.renderOnScreen +import io.github.moulberry.moulconfig.internal.TextRenderUtils import net.minecraft.client.Minecraft import net.minecraft.client.gui.FontRenderer import net.minecraft.client.gui.Gui @@ -665,7 +665,7 @@ object RenderUtils { val strLen = fr.getStringWidth(str) var factor = len / strLen.toFloat() factor = Math.min(1f, factor) - drawStringScaled(str, fr, x, y, shadow, colour, factor) + TextRenderUtils.drawStringScaled(str, fr, x, y, shadow, colour, factor) } fun RenderWorldLastEvent.drawDynamicText( |