aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
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/garden
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/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
index 3bd53b846..7d5edae2e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt
@@ -600,7 +600,7 @@ class GardenVisitorFeatures {
}
private fun findEntity(nameTag: EntityArmorStand, visitor: Visitor) {
- for (entity in EntityUtils.getAllEntities<EntityArmorStand>()) {
+ for (entity in EntityUtils.getEntities<EntityArmorStand>()) {
if (entity.getLorenzVec().distanceIgnoreY(nameTag.getLorenzVec()) != 0.0) continue
visitor.entityId = entity.entityId
@@ -610,7 +610,7 @@ class GardenVisitorFeatures {
private fun findNametag(visitorName: String): EntityArmorStand? {
val foundVisitorNameTags = mutableListOf<EntityArmorStand>()
- for (entity in EntityUtils.getAllEntities<EntityArmorStand>()) {
+ for (entity in EntityUtils.getEntities<EntityArmorStand>()) {
if (entity.name.removeColor() == visitorName) {
foundVisitorNameTags.add(entity)
}
@@ -621,7 +621,7 @@ class GardenVisitorFeatures {
if (foundVisitorNameTags.size != 2) return null
for (tag in foundVisitorNameTags.toMutableList()) {
- for (entity in EntityUtils.getAllEntities<EntityArmorStand>()) {
+ for (entity in EntityUtils.getEntities<EntityArmorStand>()) {
if (entity in foundVisitorNameTags) continue
val distance = entity.getLorenzVec().distance(tag.getLorenzVec())
if (distance < 1.5 && entity.name == "§bSam") {