fix: fix GMLIB_API::getBlockTranslateKey api and ProjectileCreate event

This commit is contained in:
zimuya4153
2025-03-27 16:33:18 +08:00
Unverified
parent 0ffd32a5d1
commit 376acdd99b
2 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -513,7 +513,7 @@ void Export_Compatibility_API() {
.value_or(0);
});
RemoteCall::exportAs("GMLIB_API", "getBlockTranslateKey", [](Block const* block) -> std::string {
return block->getLegacyBlock().mDescriptionId;
return block->getLegacyBlock().mDescriptionId + ".name";
});
RemoteCall::exportAs("GMLIB_API", "getItemTranslateKey", [](ItemStack* item) -> std::string {
return item->getDescriptionId();