Fix runes inventory since unified_inventory v2
This commit is contained in:
parent
9beb2d6830
commit
6ab62576d1
13
api.lua
13
api.lua
@ -220,13 +220,14 @@ unified_inventory.register_button("runes", {
|
||||
show_with = false, --Modif MFF (Crabman 30/06/2015)
|
||||
})
|
||||
unified_inventory.register_page("runes", {
|
||||
get_formspec = function(player)
|
||||
get_formspec = function(player, perplayer_formspec)
|
||||
local name = player:get_player_name()
|
||||
local formspec = "background[0,0.2;8,4;runes_rune_inventory.png]"..
|
||||
"background[0,4.5;8,4;ui_main_inventory.png]"..
|
||||
"size[8,10]"..
|
||||
"list[detached:"..name.."_runes;runes;0,0.2;8,4;]"
|
||||
return {formspec=formspec}
|
||||
local formspec = {
|
||||
perplayer_formspec.standard_inv_bg,
|
||||
unified_inventory.make_inv_img_grid(0.3,0.2, 8,4),
|
||||
"list[detached:"..name.."_runes;runes;0.43,0.33;8,4;]"
|
||||
}
|
||||
return {formspec=table.concat(formspec)}
|
||||
end,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user