mirror of
https://github.com/rubenwardy/sfinv.git
synced 2024-11-21 23:03:51 +01:00
Fix crash when running with formspec_prepend support
This commit is contained in:
parent
d6d2aebf83
commit
9ced56fd67
10
api.lua
10
api.lua
@ -5,10 +5,14 @@ sfinv = {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
if not minetest.features.formspec_prepends then
|
||||
sfinv.gui_bg = "bgcolor[#080808BB;true]"
|
||||
if minetest.features.formspec_prepends then
|
||||
sfinv.gui_bg = ""
|
||||
sfinv.gui_bg_img = ""
|
||||
sfinv.gui_slots = ""
|
||||
else
|
||||
sfinv.gui_bg = "bgcolor[#080808BB;true]"
|
||||
sfinv.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]"
|
||||
sfinv.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
|
||||
sfinv.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
|
||||
end
|
||||
|
||||
function sfinv.register_page(name, def)
|
||||
|
Loading…
Reference in New Issue
Block a user