diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-04-04 21:36:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:36:19 +0200 |
commit | aa0dd991654ac42e950807ef100dabd3637eb3b6 (patch) | |
tree | 9e945aa369489d46a7d993c3602286fbdc127961 | |
parent | 536a5d6fbbf464e7a134453a6e93b74149933321 (diff) | |
download | skyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.tar.gz skyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.tar.bz2 skyhanni-aa0dd991654ac42e950807ef100dabd3637eb3b6.zip |
Fix: Dojo npe (#1361)
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt | 4 |
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() ) } |