feat: add isAlwaysDestroyable

导出
This commit is contained in:
Kobe Bryant
2024-05-31 12:17:39 +08:00
committed by GitHub
Unverified
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -656,4 +656,7 @@ void Export_Compatibility_API() {
RemoteCall::exportAs("GMLIB_API", "blockCanDropWithAnyTool", [](Block const* block) -> bool {
return block->canDropWithAnyTool();
});
RemoteCall::exportAs("GMLIB_API", "blockIsAlwaysDestroyable", [](Block const* block) -> bool {
return block->getMaterial().isAlwaysDestroyable();
});
}