feat: add version to js-lib

This commit is contained in:
Tsubasa6848
2024-02-24 11:11:23 +08:00
Unverified
parent 2046c0e06d
commit 01ebf91b43
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ const GMLIB_API = {
registerBrewingMixRecipe: ll.import("GMLib_ModAPI", "registerBrewingMixRecipe"), registerBrewingMixRecipe: ll.import("GMLib_ModAPI", "registerBrewingMixRecipe"),
registerFurnaceRecipe: ll.import("GMLib_ModAPI", "registerFurnaceRecipe"), registerFurnaceRecipe: ll.import("GMLib_ModAPI", "registerFurnaceRecipe"),
registerShapedRecipe: ll.import("GMLib_ModAPI", "registerShapedRecipe"), registerShapedRecipe: ll.import("GMLib_ModAPI", "registerShapedRecipe"),
registerShapelessRecipe: ll.import("GMLib_ModAPI", "registerShapelessRecipe") registerShapelessRecipe: ll.import("GMLib_ModAPI", "registerShapelessRecipe"),
isVersionMatched: ll.import("GMLIB_API", "isVersionMatched"),
getVersion_LRCA: ll.import("GMLIB_API", "getVersion_LRCA"),
getVersion_GMLIB: ll.import("GMLIB_API", "getVersion_GMLIB")
} }
const FloatingTextList = []; const FloatingTextList = [];
+1
View File
@@ -12,6 +12,7 @@ Plugin::Plugin(ll::plugin::NativePlugin& self) : mSelf(self) {
Export_Compatibility_API(); Export_Compatibility_API();
ExportPAPI(); ExportPAPI();
logger.info("GMLIB-LegacyRemoteCallApi Loaded!"); logger.info("GMLIB-LegacyRemoteCallApi Loaded!");
logger.info("Version: {}", LIB_VERSION.asString());
logger.info("Author: GroupMountain"); logger.info("Author: GroupMountain");
logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi"); logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi");
} }