check for mcl_formspec via get_modpath

This commit is contained in:
FaceDeer 2023-01-06 20:04:13 -07:00
parent 7a8e13c664
commit 8f47fbf010

View File

@ -1,7 +1,7 @@
local S = minetest.get_translator(minetest.get_current_modname())
local mcl_formspec_itemslots
if mcl_formspec then
if minetest.get_modpath("mcl_formspec") then
mcl_formspec_itemslots = mcl_formspec.get_itemslot_bg
end