Skip to content

Commit

Permalink
Fix zone vs location check in mayfly swarm project (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinn committed Jun 24, 2024
1 parent 6238579 commit 23abfa3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/excavator-projects/projects/summonMayflySwarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,9 @@ export const SUMMON_MAYFLY_SWARM: ExcavatorProject = {
if (!swarmResult) return null;
const swarmSize = Number(swarmResult[1]);
// either zone or location, no need for multiple columns
const area =
myLocation().zone in ZONE_PATTERNS
? myLocation().zone
: `${myLocation()}`;
const area = ZONE_PATTERNS.has(myLocation().zone)
? myLocation().zone
: `${myLocation()}`;
const patterns = {
special: specialPattern,
item: ITEM_PATTERN,
Expand Down

0 comments on commit 23abfa3

Please sign in to comment.