diff --git a/classic.js b/classic.js index 2d2bb30..e9c9288 100644 --- a/classic.js +++ b/classic.js @@ -280,7 +280,12 @@ }); } const seen = new Set(); - return out.filter(c => (seen.has(c.hex) ? false : (seen.add(c.hex), true))); + return out.filter(c => { + const key = `${c.image || ''}|${c.hex}`; + if (seen.has(key)) return false; + seen.add(key); + return true; + }); } // -------- tiny grid engine (Mithril) ----------