(BugFix): Recheck chest locations to remove ghost chest highlights
This commit is contained in:
parent
fab0790e58
commit
9749a3199a
@ -63,6 +63,15 @@ object ChestEsp {
|
||||
val pos = event.pos
|
||||
if (chestNodeExists(pos.x, pos.y, 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()
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user