From 1ca6d44c111f6b6cc85e738ecc9c72a468b25b69 Mon Sep 17 00:00:00 2001 From: n15421 <119112174+n15421@users.noreply.github.com> Date: Tue, 22 Jul 2025 13:22:19 +0800 Subject: [PATCH] feat: adapt to gmlib 1.4.0 and ila 0.7.0 --- src/CompatibilityApi.cpp | 4 ++-- tooth.json | 2 +- xmake.lua | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index 7829665..2cfdd64 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -559,7 +559,7 @@ void Export_Compatibility_API() { } ); RemoteCall::exportAs("GMLIB_API", "getBlockDestroySpeed", [](Block const* block) -> float { - return block->mDirectData->mUnkc08fbd.as(); + return block->mDirectData->mDestroySpeed; }); RemoteCall::exportAs("GMLIB_API", "getDestroyBlockSpeed", [](ItemStack const* item, Block const* block) -> float { return item->getItem()->getDestroySpeed(*item, *block); @@ -613,7 +613,7 @@ void Export_Compatibility_API() { "getBlockLightEmission", [](std::string const& blockName, short legacyData) -> char { return Block::tryGetFromRegistry(blockName) - .transform([](const Block& block) -> char { return block.mDirectData->mUnkda4e0e.as(); }) + .transform([](const Block& block) -> char { return block.mDirectData->mLightEmission->mValue; }) .value_or(-1); } ); diff --git a/tooth.json b/tooth.json index e63aae6..09f53da 100644 --- a/tooth.json +++ b/tooth.json @@ -2,7 +2,7 @@ "format_version": 3, "format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d", "tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi", - "version": "1.2.0", + "version": "1.4.0", "info": { "name": "GMLIB-LegacyRemoteCallApi", "description": "Legacy RemoteCall API for GMLIB", diff --git a/xmake.lua b/xmake.lua index 92d4ff5..afa2cce 100644 --- a/xmake.lua +++ b/xmake.lua @@ -8,11 +8,11 @@ if not has_config("vs_runtime") then set_runtimes("MD") end -add_requires("levilamina 1.3.0", {configs = {target_type = "server"}}) +add_requires("levilamina 1.4.1", {configs = {target_type = "server"}}) add_requires("legacyremotecall") add_requires("levibuildscript") -add_requires("ilistenattentively 0.6.0") -add_requires("gmlib 1.3.0-rc.1") +add_requires("ilistenattentively 0.7.0") +add_requires("gmlib 1.4.0") target("GMLIB-LegacyRemoteCallApi") add_cxflags(