(BugFix): Recheck chest locations to remove ghost chest highlights

This commit is contained in:
illyum 2024-08-22 13:13:08 -06:00
parent fab0790e58
commit 9749a3199a

View File

@ -63,6 +63,15 @@ object ChestEsp {
val pos = event.pos val pos = event.pos
if (chestNodeExists(pos.x, pos.y, pos.z)) { if (chestNodeExists(pos.x, pos.y, pos.z)) {
chestList.removeIf { it.x == pos.x && it.y == pos.y && it.z == pos.z } chestList.removeIf { it.x == pos.x && it.y == pos.y && it.z == pos.z }
checkChestLocations()
}
}
}
fun checkChestLocations() {
for (chest in chestList) {
if (chestNodeExists(chest.x, chest.y, chest.z)) {
chestList.removeIf { it.x == chest.x && it.y == chest.y && it.z == chest.z }
} }
} }
} }
@ -97,6 +106,7 @@ object ChestEsp {
} }
} }
} }
checkChestLocations()
} }