Skip to content

Commit

Permalink
v1.1.1.1 oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
Jukkales committed Apr 11, 2024
1 parent 88e0e66 commit 306fd89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HoardFarm/Service/HoardFarmService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ private void Reset()
private unsafe bool SearchLogic()
{
HoardModeStatus = "Searching";
chestIds.Clear();
var chests = ObjectTable.Where(e => ChestIDs.Contains(e.DataId)).Select(e => e.ObjectId).Distinct().ToList();
chests.ForEach(e =>
{
if (!visitedChestIds.Contains(e) && !chestIds.Contains(e))
if (!visitedChestIds.Contains(e))
{
chestIds.Add(e);
}
Expand All @@ -115,7 +116,6 @@ private unsafe bool SearchLogic()
{
var nextChest = chestIds.MaxBy(id => ObjectTable.First(e => e.ObjectId == id).Position.Distance(Player.GameObject->Position));
visitedChestIds.Add(nextChest);
chestIds.Remove(nextChest);

if (!Concealment)
{
Expand Down

0 comments on commit 306fd89

Please sign in to comment.