aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-06 23:53:51 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-06 23:53:51 +0100
commitb572e995a4e932c61753ecbc2f9bf8da4a8ef151 (patch)
tree3366120fb72242eca6434574b4df473e1202e9e2 /src/main/java/at/hannibal2
parente03f9232c5915cc7155c98abd3feba704ae3bb74 (diff)
downloadskyhanni-b572e995a4e932c61753ecbc2f9bf8da4a8ef151.tar.gz
skyhanni-b572e995a4e932c61753ecbc2f9bf8da4a8ef151.tar.bz2
skyhanni-b572e995a4e932c61753ecbc2f9bf8da4a8ef151.zip
Fixed 1/1000000 crash.
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 97bba3099..3f8f1ce68 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -424,7 +424,8 @@ object RenderUtils {
return lastValue + (currentValue - lastValue) * multiplier
}
- fun Position.renderString(string: String, offsetY: Int = 0) {
+ fun Position.renderString(string: String?, offsetY: Int = 0) {
+ if (string == null) return
if (string == "") return
val textToRender = "§f$string"