wrap the existing function rather than copy and pasting it

This commit is contained in:
FaceDeer 2022-08-26 23:52:27 -06:00
parent e0eab50290
commit 964781a10e
1 changed files with 1 additions and 1 deletions

View File

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