mirror of
https://github.com/rubenwardy/sfinv.git
synced 2024-11-22 15:23:45 +01:00
Fix crash when running with formspec_prepend support
This commit is contained in:
parent
d6d2aebf83
commit
9ced56fd67
6
api.lua
6
api.lua
@ -5,7 +5,11 @@ sfinv = {
|
|||||||
enabled = true
|
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 = "bgcolor[#080808BB;true]"
|
||||||
sfinv.gui_bg_img = "background[5,5;1,1;gui_formbg.png;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]"
|
||||||
|
Loading…
Reference in New Issue
Block a user