From 964781a10ef3840f9ba0764c8c0b690fda4b0b13 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Fri, 26 Aug 2022 23:52:27 -0600 Subject: [PATCH] wrap the existing function rather than copy and pasting it --- df_dependencies/helper_functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/df_dependencies/helper_functions.lua b/df_dependencies/helper_functions.lua index 427f18b..29d56f3 100644 --- a/df_dependencies/helper_functions.lua +++ b/df_dependencies/helper_functions.lua @@ -204,7 +204,7 @@ if minetest.get_modpath("mcl_formspec") then local out = "" for i = 0, w - 1, 1 do for j = 0, h - 1, 1 do - out = out .."image["..x+i+(i*padding)..","..y+j+(j*padding)..";1,1;mcl_formspec_itemslot.png]" + out = out .. mcl_formspec.get_itemslot_bg(x+i+(i*padding), y+j+(j*padding), 1, 1) end end return out