Disable legacy default GUI prepend if not avail.

This commit is contained in:
Wuzzy 2019-03-07 18:35:56 +01:00
parent 8209895ea0
commit fe46c670e3

View File

@ -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