Fix crash when running with formspec_prepend support

This commit is contained in:
rubenwardy 2018-03-07 16:37:20 +00:00
parent d6d2aebf83
commit 9ced56fd67

@ -5,7 +5,11 @@ sfinv = {
enabled = true
}
if not minetest.features.formspec_prepends then
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]"