From 9170c704f0075e8f9ffe946ed61e8982c9f023c1 Mon Sep 17 00:00:00 2001 From: ana Date: Mon, 9 Aug 2021 15:53:09 +0200 Subject: fix: correct the spawn finding algorithm --- src/bestiary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bestiary.js b/src/bestiary.js index 08b16e1..0bdea04 100644 --- a/src/bestiary.js +++ b/src/bestiary.js @@ -94,7 +94,7 @@ function findForecastMatch(forecast, conditions) { function findNextSpawn(forecast, spawnConditions) { return forecast.find((f) => { - return spawnConditions.includes(forecast.currWeather); + return spawnConditions.includes(f.currWeather); }); } -- cgit 1.4.1-2-gfad0