aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-04-04 21:36:19 +0200
committerGitHub <noreply@github.com>2024-04-04 21:36:19 +0200
commitaa0dd991654ac42e950807ef100dabd3637eb3b6 (patch)
tree9e945aa369489d46a7d993c3602286fbdc127961 /src/main/java/at/hannibal2/skyhanni
parent536a5d6fbbf464e7a134453a6e93b74149933321 (diff)
downloadskyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.tar.gz
skyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.tar.bz2
skyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.zip
Fix: Dojo npe (#1361)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt
index b8c9f9227..90893f248 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt
@@ -123,7 +123,9 @@ object MobFactories {
baseEntity = baseEntity,
mobType = Mob.Type.SPECIAL,
armorStand = armorStand,
- name = if (this.group("points").isNotEmpty()) "Points: " + this.group("points") else this.group("empty")
+ name = if (this.group("points")
+ ?.isNotEmpty() == true
+ ) "Points: " + this.group("points") else this.group("empty").toString()
)
}