导出canDropWithAnyTool接口和删除多余include

This commit is contained in:
子沐呀
2024-05-29 07:02:23 +08:00
Unverified
parent 78721df3f0
commit ade132c8b2
2 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,4 @@
#include "Global.h"
#include "mc/world/Pos.h"
#include "mc/world/level/BlockPos.h"
#include "mc/world/level/BlockSource.h"
#include <regex>
bool isInteger(const std::string& str) {
@@ -655,4 +652,7 @@ void Export_Compatibility_API() {
RemoteCall::exportAs("GMLIB_API", "itemCanDestroySpecial", [](ItemStack const* item, Block const* block) -> bool {
return item->canDestroySpecial(*block);
});
RemoteCall::exportAs("GMLIB_API", "blockCanDropWithAnyTool", [](Block const* block) -> bool {
return block->canDropWithAnyTool();
});
}