File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,11 @@ private void Reset()
102
102
private unsafe bool SearchLogic ( )
103
103
{
104
104
HoardModeStatus = "Searching" ;
105
+ chestIds . Clear ( ) ;
105
106
var chests = ObjectTable . Where ( e => ChestIDs . Contains ( e . DataId ) ) . Select ( e => e . ObjectId ) . Distinct ( ) . ToList ( ) ;
106
107
chests . ForEach ( e =>
107
108
{
108
- if ( ! visitedChestIds . Contains ( e ) && ! chestIds . Contains ( e ) )
109
+ if ( ! visitedChestIds . Contains ( e ) )
109
110
{
110
111
chestIds . Add ( e ) ;
111
112
}
@@ -115,7 +116,6 @@ private unsafe bool SearchLogic()
115
116
{
116
117
var nextChest = chestIds . MaxBy ( id => ObjectTable . First ( e => e . ObjectId == id ) . Position . Distance ( Player . GameObject ->Position ) ) ;
117
118
visitedChestIds . Add ( nextChest ) ;
118
- chestIds . Remove ( nextChest ) ;
119
119
120
120
if ( ! Concealment )
121
121
{
You can’t perform that action at this time.
0 commit comments