mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2025-07-05 01:40:28 +02:00
Refer to craft_sorters on the API object, not global
This commit is contained in:
2
api.lua
2
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)
|
||||
|
Reference in New Issue
Block a user