style: format
This commit is contained in:
+3
-3
@@ -116,8 +116,8 @@ const GMLIB_API = {
|
|||||||
getEntityTranslateKey: ll.import("GMLIB_API", "getEntityTranslateKey"),
|
getEntityTranslateKey: ll.import("GMLIB_API", "getEntityTranslateKey"),
|
||||||
readNbtFromFile: ll.import("GMLIB_API", "readNbtFromFile"),
|
readNbtFromFile: ll.import("GMLIB_API", "readNbtFromFile"),
|
||||||
saveNbtToFile: ll.import("GMLIB_API", "saveNbtToFile"),
|
saveNbtToFile: ll.import("GMLIB_API", "saveNbtToFile"),
|
||||||
getBlockDestroySpeed : ll.import("GMLIB_API","getBlockDestroySpeed"),
|
getBlockDestroySpeed: ll.import("GMLIB_API", "getBlockDestroySpeed"),
|
||||||
getDestroyBlockSpeed : ll.import("GMLIB_API","getDestroyBlockSpeed")
|
getDestroyBlockSpeed: ll.import("GMLIB_API", "getDestroyBlockSpeed")
|
||||||
}
|
}
|
||||||
|
|
||||||
const FloatingTextList = [];
|
const FloatingTextList = [];
|
||||||
@@ -970,7 +970,7 @@ LLSE_Block.prototype.getBlockDestroySpeed = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LLSE_Item.prototype.getDestroyBlockSpeed = function (block) {
|
LLSE_Item.prototype.getDestroyBlockSpeed = function (block) {
|
||||||
return GMLIB_API.getDestroyBlockSpeed(this,block);
|
return GMLIB_API.getDestroyBlockSpeed(this, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@@ -633,7 +633,7 @@ void Export_Compatibility_API() {
|
|||||||
RemoteCall::exportAs("GMLIB_API", "getBlockDestroySpeed", [](Block const* block) -> float {
|
RemoteCall::exportAs("GMLIB_API", "getBlockDestroySpeed", [](Block const* block) -> float {
|
||||||
return block->getDestroySpeed();
|
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);
|
return item->getDestroySpeed(*block);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user