diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-23 08:40:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-04-23 08:40:25 +0200 |
commit | b40ca6837bd362be9a14b1f027ac176220040f9c (patch) | |
tree | b085aa3af4e8efeac6c11a3e8591bccc336cef3b /src/main/java/at | |
parent | 058c851c6320c2501d7e04f65819a3cace6534e9 (diff) | |
download | skyhanni-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.kt | 2 |
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 |