Add unified_inventory function prefix
This commit is contained in:
parent
0066d3c7ec
commit
bcc6774ff8
1
api.lua
1
api.lua
|
@ -305,4 +305,3 @@ function unified_inventory.is_creative(playername)
|
||||||
return minetest.check_player_privs(playername, {creative=true})
|
return minetest.check_player_privs(playername, {creative=true})
|
||||||
or minetest.settings:get_bool("creative_mode")
|
or minetest.settings:get_bool("creative_mode")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -289,7 +289,7 @@ local function can_move(match_items, inv_list)
|
||||||
return true
|
return true
|
||||||
end
|
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 src_list = inv:get_list(src_list_name)
|
||||||
local dst_list = inv:get_list(dst_list_name)
|
local dst_list = inv:get_list(dst_list_name)
|
||||||
|
|
||||||
|
|
|
@ -467,7 +467,7 @@ local function craftguide_craft(player, formname, fields)
|
||||||
local craft = crafts[alternate]
|
local craft = crafts[alternate]
|
||||||
if craft.width > 3 then return end
|
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")
|
unified_inventory.set_inventory_formspec(player, "craft")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue