Add 0.4.X compatibility comment.

formspeclib optionally needs MTG on 0.4.X, but on 0.5 it doesn't need to be in depends.txt.
This commit is contained in:
luk3yx 2018-04-03 08:54:20 +12:00
parent aa08f240d3
commit 26b9036f75
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ formspeclib.render = function(formspec, safe_mode, no_iterations)
end
end
if width > 0 and height > 0 then
-- The below three lines are here to ensure compatibility with Minetest
-- 0.4.X. When the variables are removed from minetest_game they will
-- simply be ignored by the mod.
if default and default.gui_bg and default.gui_bg_img and default.gui_slots then
compiled = default.gui_bg .. default.gui_bg_img .. default.gui_slots .. compiled
end