From 65dcbf8dd3220464d6c30b6167ca73ba34109203 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Wed, 11 Jan 2023 03:32:07 -0600 Subject: quick patch for empty tooltips to not render --- src/main/kotlin/dulkirmod/features/ScalableTooltips.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt index ae53a3b..95e1941 100644 --- a/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt +++ b/src/main/kotlin/dulkirmod/features/ScalableTooltips.kt @@ -27,6 +27,7 @@ object ScalableTooltips { ci: CallbackInfo ): Boolean { if(!Config.scaledTooltips) return false + if(textLines.isEmpty()) return true val scale = Config.tooltipSize // Calculate the width and height of the tooltip box -- cgit