From 7db055d8ab5e69dde26a808aff46756b485f8d56 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sun, 11 May 2025 09:45:45 -0300 Subject: [PATCH] improvements --- inventory_management.lua | 6 ++++-- mod.conf | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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