diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-23 23:46:21 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-23 23:46:21 +0200 |
commit | 0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e (patch) | |
tree | b9cefd6f22580e1ea7a08a496a7e62fe00c89045 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | f43bac23acf79325f9f4de060b69c5c0b1d870eb (diff) | |
download | skyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.tar.gz skyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.tar.bz2 skyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.zip |
fixed names
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt index 688649905..565b9728a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MarkedPlayerManager.kt @@ -47,7 +47,7 @@ class MarkedPlayerManager { } private fun findPlayers() { - for (entity in EntityUtils.getAllEntities<EntityOtherPlayerMP>()) { + for (entity in EntityUtils.getEntities<EntityOtherPlayerMP>()) { if (entity in markedPlayers.values) continue val name = entity.name.lowercase() diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ParticleHider.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ParticleHider.kt index b91865aa3..74d33cbd9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ParticleHider.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ParticleHider.kt @@ -36,7 +36,7 @@ class ParticleHider { if (SkyHanniMod.feature.misc.hideFireballParticles) { if (type == EnumParticleTypes.SMOKE_NORMAL || type == EnumParticleTypes.SMOKE_LARGE) { - for (entity in EntityUtils.getAllEntities<EntitySmallFireball>()) { + for (entity in EntityUtils.getEntities<EntitySmallFireball>()) { val distance = entity.getLorenzVec().distance(event.location) if (distance < 5) { event.isCanceled = true diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ThunderSparksHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ThunderSparksHighlight.kt index 81a20c679..5c1e56d51 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ThunderSparksHighlight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ThunderSparksHighlight.kt @@ -26,7 +26,7 @@ class ThunderSparksHighlight { if (!isEnabled()) return - EntityUtils.getAllEntities<EntityArmorStand>().filter { + EntityUtils.getEntities<EntityArmorStand>().filter { it !in sparks && it.hasSkullTexture(texture) }.forEach { sparks.add(it) } } |