From 26b9036f75263a300d2360743db96c671266f900 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Tue, 3 Apr 2018 08:54:20 +1200 Subject: [PATCH] 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. --- core.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core.lua b/core.lua index 086c530..e07d91c 100644 --- a/core.lua +++ b/core.lua @@ -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