aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
index 33ab90e60..0f5c1b325 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt
@@ -138,7 +138,7 @@ object MobFilter {
else -> true
}
- fun EntityPlayer.isRealPlayer() = uniqueID != null && uniqueID.version() == 4
+ fun EntityPlayer.isRealPlayer() = uniqueID?.let { it.version() == 4 } ?: false
fun EntityLivingBase.isDisplayNPC() = (this is EntityPlayer && isNPC() && displayNPCNameCheck(this.name))
|| (this is EntityVillager && this.maxHealth == 20.0f) // Villager NPCs in the Village