style: format

This commit is contained in:
Tsubasa6848
2024-05-28 03:32:11 +08:00
Unverified
parent c6b40206d8
commit 8f9447bcdb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -116,8 +116,8 @@ const GMLIB_API = {
getEntityTranslateKey: ll.import("GMLIB_API", "getEntityTranslateKey"),
readNbtFromFile: ll.import("GMLIB_API", "readNbtFromFile"),
saveNbtToFile: ll.import("GMLIB_API", "saveNbtToFile"),
getBlockDestroySpeed : ll.import("GMLIB_API","getBlockDestroySpeed"),
getDestroyBlockSpeed : ll.import("GMLIB_API","getDestroyBlockSpeed")
getBlockDestroySpeed: ll.import("GMLIB_API", "getBlockDestroySpeed"),
getDestroyBlockSpeed: ll.import("GMLIB_API", "getDestroyBlockSpeed")
}
const FloatingTextList = [];
@@ -970,7 +970,7 @@ LLSE_Block.prototype.getBlockDestroySpeed = function () {
}
LLSE_Item.prototype.getDestroyBlockSpeed = function (block) {
return GMLIB_API.getDestroyBlockSpeed(this,block);
return GMLIB_API.getDestroyBlockSpeed(this, block);
}
module.exports = {
+1 -1
View File
@@ -633,7 +633,7 @@ void Export_Compatibility_API() {
RemoteCall::exportAs("GMLIB_API", "getBlockDestroySpeed", [](Block const* block) -> float {
return block->getDestroySpeed();
});
RemoteCall::exportAs("GMLIB_API", "getDestroyBlockSpeed", [](ItemStack const* item,Block const* block) -> float {
RemoteCall::exportAs("GMLIB_API", "getDestroyBlockSpeed", [](ItemStack const* item, Block const* block) -> float {
return item->getDestroySpeed(*block);
});
}