Disable legacy default GUI prepend if not avail.
This commit is contained in:
parent
8209895ea0
commit
fe46c670e3
3
init.lua
3
init.lua
@ -114,7 +114,8 @@ local show_dialog_page = function(playername, dialogname, filter, compare, page)
|
||||
total_pages = math.ceil(#items / (xsize * ysize))
|
||||
end
|
||||
local bg = ""
|
||||
if minetest.get_modpath("default") then
|
||||
-- Legacy default formspec background (MT<=0.4.17)
|
||||
if minetest.get_modpath("default") and default.gui_bg then
|
||||
bg = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||
end
|
||||
if #items == 0 then
|
||||
|
Loading…
x
Reference in New Issue
Block a user