From 8f9447bcdb5ad2a7638320c49f58bfc4b7551621 Mon Sep 17 00:00:00 2001 From: Tsubasa6848 <116721335+Tsubasa6848@users.noreply.github.com> Date: Tue, 28 May 2024 03:32:11 +0800 Subject: [PATCH] style: format --- lib/GMLIB_API-JS.js | 6 +++--- src/CompatibilityApi.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/GMLIB_API-JS.js b/lib/GMLIB_API-JS.js index 1b6df03..fc2c748 100644 --- a/lib/GMLIB_API-JS.js +++ b/lib/GMLIB_API-JS.js @@ -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 = { diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index 9ed1fe6..b3e82e0 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -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); }); } \ No newline at end of file