diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/FontUtil.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/FontUtil.kt index d9b4de8..a617692 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/FontUtil.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/FontUtil.kt @@ -7,7 +7,7 @@ import fr.username404.snowygui.gui.feature.Colors object FontUtil { fun drawScaled(stack: PoseStack, text: String, x: Double, y: Double, scaleFactor: Float, color: Colors = Colors.BLACK) { stack.scale(scaleFactor, scaleFactor, scaleFactor) - Minecraft.getInstance().font.draw(stack, text, (x / scaleFactor).toFloat(), (y / scaleFactor).toFloat(), color) + Minecraft.getInstance().font.draw(stack, text, (x / scaleFactor).toFloat(), (y / scaleFactor).toFloat(), color.hexValue) val factorToOriginal = 1F / scaleFactor stack.scale(factorToOriginal, factorToOriginal, factorToOriginal) }