From 9ecb13e7a40db0c99cb6ec384815765f0560cc51 Mon Sep 17 00:00:00 2001 From: KobeBryant114514 <116721335+KobeBryant114514@users.noreply.github.com> Date: Sat, 21 Sep 2024 21:37:00 +0800 Subject: [PATCH] style: format --- lib/EventAPI-JS.js | 2 +- src/LegacyModApi.cpp | 12 ++---------- src/PlaceholderApi.cpp | 19 +++---------------- 3 files changed, 6 insertions(+), 27 deletions(-) diff --git a/lib/EventAPI-JS.js b/lib/EventAPI-JS.js index bddf72f..61a9c72 100644 --- a/lib/EventAPI-JS.js +++ b/lib/EventAPI-JS.js @@ -25,4 +25,4 @@ class Event { } } -module.exports = {Event}; \ No newline at end of file +module.exports = { Event }; \ No newline at end of file diff --git a/src/LegacyModApi.cpp b/src/LegacyModApi.cpp index 3cab3db..dc36bee 100644 --- a/src/LegacyModApi.cpp +++ b/src/LegacyModApi.cpp @@ -115,13 +115,7 @@ void Export_Legacy_GMLib_ModAPI() { if (!level) { return; } - JsonRecipe::registerSmithingTransformRecipe( - recipe_id, - smithing_template, - base, - addition, - result - ); + JsonRecipe::registerSmithingTransformRecipe(recipe_id, smithing_template, base, addition, result); } ); RemoteCall::exportAs( @@ -192,7 +186,5 @@ void Export_Legacy_GMLib_ModAPI() { } return false; }); - RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void { - VanillaFix::setFixI18nEnabled(); - }); + RemoteCall::exportAs("GMLib_ModAPI", "setFixI18nEnabled", []() -> void { VanillaFix::setFixI18nEnabled(); }); } \ No newline at end of file diff --git a/src/PlaceholderApi.cpp b/src/PlaceholderApi.cpp index 8e3ef02..a7ca003 100644 --- a/src/PlaceholderApi.cpp +++ b/src/PlaceholderApi.cpp @@ -36,11 +36,7 @@ bool registerPlayerPlaceholder( ); } else { auto Call = RemoteCall::importAs(PluginName, FuncName); - PlaceholderAPI::registerPlayerPlaceholder( - PAPIName, - [Call](Player* sp) { return Call(sp); }, - PluginName - ); + PlaceholderAPI::registerPlayerPlaceholder(PAPIName, [Call](Player* sp) { return Call(sp); }, PluginName); } return true; } @@ -82,18 +78,9 @@ bool registerStaticPlaceholder( if (isParameters(PAPIName)) { auto Call = RemoteCall::importAs(PluginName, FuncName); if (num == -1) { - PlaceholderAPI::registerStaticPlaceholder( - PAPIName, - [Call] { return Call(); }, - PluginName - ); + PlaceholderAPI::registerStaticPlaceholder(PAPIName, [Call] { return Call(); }, PluginName); } else { - PlaceholderAPI::registerStaticPlaceholder( - PAPIName, - num, - [Call] { return Call(); }, - PluginName - ); + PlaceholderAPI::registerStaticPlaceholder(PAPIName, num, [Call] { return Call(); }, PluginName); } } return true;