From 6fc91386b3927594dea31351364b9d12d17fb198 Mon Sep 17 00:00:00 2001 From: Azur3Sky Date: Mon, 12 Apr 2021 21:05:54 -0700 Subject: [PATCH] Fixed hash function in Runewords.js --- kolbot/libs/common/Runewords.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolbot/libs/common/Runewords.js b/kolbot/libs/common/Runewords.js index d3d1c39..3096c67 100644 --- a/kolbot/libs/common/Runewords.js +++ b/kolbot/libs/common/Runewords.js @@ -490,6 +490,6 @@ RuneLoop: // given a list of required runes for a runeword, // generate and return the hashcode of that list getHash: function(runewords) { - return runewords.join("|"); + return Array.isArray(runewords) ? runewords.join("|") : runewords; } }; \ No newline at end of file