aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-23 08:40:25 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-04-23 08:40:25 +0200
commitb40ca6837bd362be9a14b1f027ac176220040f9c (patch)
treeb085aa3af4e8efeac6c11a3e8591bccc336cef3b /src/main/java/at
parent058c851c6320c2501d7e04f65819a3cace6534e9 (diff)
downloadskyhanni-b40ca6837bd362be9a14b1f027ac176220040f9c.tar.gz
skyhanni-b40ca6837bd362be9a14b1f027ac176220040f9c.tar.bz2
skyhanni-b40ca6837bd362be9a14b1f027ac176220040f9c.zip
code cleanup
Diffstat (limited to 'src/main/java/at')
-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