improvements

This commit is contained in:
Alexsandro Percy 2025-05-11 09:45:45 -03:00
parent 18338a333b
commit 7db055d8ab
2 changed files with 5 additions and 3 deletions

View file

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

View file

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