From aa0dd991654ac42e950807ef100dabd3637eb3b6 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Thu, 4 Apr 2024 21:36:19 +0200 Subject: Fix: Dojo npe (#1361) --- src/main/java/at/hannibal2/skyhanni/data/mob/MobFactories.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() ) } -- cgit