From bceca21f47a0f44bacb9e1c2fa04a6b92d882665 Mon Sep 17 00:00:00 2001 From: Oversword Date: Sun, 29 Aug 2021 15:30:07 +0100 Subject: [PATCH] Refer to craft_sorters on the API object, not global --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 8a8efed..30ad451 100644 --- a/api.lua +++ b/api.lua @@ -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)