Fix runes inventory since unified_inventory v2

This commit is contained in:
bri cassa 2021-04-08 21:52:09 +02:00
parent 9beb2d6830
commit 6ab62576d1
1 changed files with 7 additions and 6 deletions

13
api.lua
View File

@ -220,13 +220,14 @@ unified_inventory.register_button("runes", {
show_with = false, --Modif MFF (Crabman 30/06/2015) show_with = false, --Modif MFF (Crabman 30/06/2015)
}) })
unified_inventory.register_page("runes", { unified_inventory.register_page("runes", {
get_formspec = function(player) get_formspec = function(player, perplayer_formspec)
local name = player:get_player_name() local name = player:get_player_name()
local formspec = "background[0,0.2;8,4;runes_rune_inventory.png]".. local formspec = {
"background[0,4.5;8,4;ui_main_inventory.png]".. perplayer_formspec.standard_inv_bg,
"size[8,10]".. unified_inventory.make_inv_img_grid(0.3,0.2, 8,4),
"list[detached:"..name.."_runes;runes;0,0.2;8,4;]" "list[detached:"..name.."_runes;runes;0.43,0.33;8,4;]"
return {formspec=formspec} }
return {formspec=table.concat(formspec)}
end, end,
}) })