aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/dulkirmod/features/ScalableTooltips.kt1
1 files changed, 1 insertions, 0 deletions
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