From bcc6774ff871576040023692b90bb6476bc22d5c Mon Sep 17 00:00:00 2001 From: Andrey Kozlovskiy Date: Fri, 23 Aug 2019 04:19:30 +0300 Subject: [PATCH] Add unified_inventory function prefix --- api.lua | 1 - match_craft.lua | 2 +- register.lua | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api.lua b/api.lua index 3ec17ec..238c622 100644 --- a/api.lua +++ b/api.lua @@ -305,4 +305,3 @@ function unified_inventory.is_creative(playername) return minetest.check_player_privs(playername, {creative=true}) or minetest.settings:get_bool("creative_mode") end - diff --git a/match_craft.lua b/match_craft.lua index 6c2bd76..97cbfc7 100644 --- a/match_craft.lua +++ b/match_craft.lua @@ -289,7 +289,7 @@ local function can_move(match_items, inv_list) return true end -function craftguide_match_craft(inv, src_list_name, dst_list_name, craft, amount) +function unified_inventory.craftguide_match_craft(inv, src_list_name, dst_list_name, craft, amount) local src_list = inv:get_list(src_list_name) local dst_list = inv:get_list(dst_list_name) diff --git a/register.lua b/register.lua index 500caa1..36d0c59 100644 --- a/register.lua +++ b/register.lua @@ -467,7 +467,7 @@ local function craftguide_craft(player, formname, fields) local craft = crafts[alternate] if craft.width > 3 then return end - craftguide_match_craft(player_inv, "main", "craft", craft, amount) + unified_inventory.craftguide_match_craft(player_inv, "main", "craft", craft, amount) unified_inventory.set_inventory_formspec(player, "craft") end