Mikarific / InfiniteCraftHelper

A script that adds various useful features to Infinite Craft.
MIT License
49 stars 15 forks source link

"Sort by emoji" fails when one or more items has a non-string emoji #13

Open ToMyFriends opened 4 months ago

ToMyFriends commented 4 months ago

The userscript barfs on the line emojiA.localeCompare(emojiB) when emojiA is a non-string type. This happened to me because I have an item called "The Answer" which is represented in the save data as follows:

{
    "text": "The Answer",
    "emoji": 42,
    "discovered": false
}