feat: adapt to gmlib 1.4.0 and ila 0.7.0
This commit is contained in:
@@ -559,7 +559,7 @@ void Export_Compatibility_API() {
|
||||
}
|
||||
);
|
||||
RemoteCall::exportAs("GMLIB_API", "getBlockDestroySpeed", [](Block const* block) -> float {
|
||||
return block->mDirectData->mUnkc08fbd.as<float>();
|
||||
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<char>(); })
|
||||
.transform([](const Block& block) -> char { return block.mDirectData->mLightEmission->mValue; })
|
||||
.value_or(-1);
|
||||
}
|
||||
);
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user