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