From b40ca6837bd362be9a14b1f027ac176220040f9c Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:40:25 +0200 Subject: code cleanup --- src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at') 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 -- cgit