导出isAlwaysDestroyable

This commit is contained in:
子沐呀
2024-05-30 19:44:39 +08:00
Unverified
parent ade132c8b2
commit 28be308aba
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -655,4 +655,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();
});
}