summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-23 23:46:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-23 23:46:21 +0200
commit0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e (patch)
treeb9cefd6f22580e1ea7a08a496a7e62fe00c89045 /src/main/java/at/hannibal2/skyhanni/features/fishing
parentf43bac23acf79325f9f4de060b69c5c0b1d870eb (diff)
downloadskyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.tar.gz
skyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.tar.bz2
skyhanni-0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e.zip
fixed names
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt
index 3e88766c2..8ea8b1a59 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/BarnFishingTimer.kt
@@ -59,7 +59,7 @@ class BarnFishingTimer {
}
}
- private fun countMobs() = EntityUtils.getAllEntities<EntityArmorStand>()
+ private fun countMobs() = EntityUtils.getEntities<EntityArmorStand>()
.map { it.name }
.count { it.endsWith("§c❤") }
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt
index 8f98d54ca..9345b1552 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt
@@ -44,7 +44,7 @@ class ShowFishingItemName {
fun onRenderWorld(event: RenderWorldLastEvent) {
if (!isEnabled()) return
if (hasRodInHand) {
- for (entityItem in EntityUtils.getAllEntities<EntityItem>()) {
+ for (entityItem in EntityUtils.getEntities<EntityItem>()) {
val location = event.exactLocation(entityItem).add(0.0, 0.8, 0.0)
if (location.distance(LocationUtils.playerLocation()) > 15) continue
val itemStack = entityItem.entityItem