fix: fix compile

This commit is contained in:
zimuya4153
2025-03-29 17:42:07 +08:00
Unverified
parent 1eaf23a5dc
commit 32487d402d
+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 + ".name";
return block->getLegacyBlock().mDescriptionId.get() + ".name";
});
RemoteCall::exportAs("GMLIB_API", "getItemTranslateKey", [](ItemStack* item) -> std::string {
return item->getDescriptionId();