diff --git a/inventory_management.lua b/inventory_management.lua index b8ee9d6..9d70477 100644 --- a/inventory_management.lua +++ b/inventory_management.lua @@ -3,8 +3,10 @@ airutils.modname = core.get_current_modname() --function to format formspec for mineclone. In case of minetest, just returns an empty string function airutils.get_itemslot_bg(a, b, c, d) - if mcl_formspec then - return mcl_formspec.get_itemslot_bg(a,b,c,d) + if airutils.is_mcl then + if mcl_formspec then + return mcl_formspec.get_itemslot_bg(a,b,c,d) + end end return "" end diff --git a/mod.conf b/mod.conf index 3b79d67..d32ef5d 100644 --- a/mod.conf +++ b/mod.conf @@ -2,4 +2,4 @@ name = airutils title=AirUtils description=A lib for airplanes and some useful tools author=apercy -optional_depends=player_api, emote, climate_api, biofuel, signs_lib, skinsdb +optional_depends=player_api, mcl_formspec, mcl_player, emote, climate_api, biofuel, signs_lib, skinsdb