Skip to content

Commit

Permalink
fix orbweaving code in getisland
Browse files Browse the repository at this point in the history
  • Loading branch information
horrible-little-slime committed Dec 23, 2024
1 parent 44dd558 commit e67ef4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ export function getIsland(orb = true): HolidayIsland {
const ponderResult = OrbManager.ponder();

return (
islands.find(
({ location, orbTarget }) => ![undefined, orbTarget].includes(ponderResult.get(location))
) ?? islands[0]
islands.find(({ location, orbTarget }) => ponderResult.get(location) === orbTarget) ??
islands.find(({ location }) => !ponderResult.has(location)) ??
islands[0]
);
}

Expand Down

0 comments on commit e67ef4b

Please sign in to comment.