Refer to craft_sorters on the API object, not global

This commit is contained in:
Oversword 2021-08-29 15:30:07 +01:00
parent db160dddd5
commit bceca21f47
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ function ui.register_craft_sorter(method, item_name)
error(("Craft sorter method must be a function, %s given."):format(type(method)))
end
if not item_name then item_name = "_default_" end
craft_sorters[item_name] = method
ui.craft_sorters[item_name] = method
end
function ui.is_creative(playername)