Skip to content

Commit bbe2ba2

Browse files
committed
chore: fix misspelled words
1 parent ad07d55 commit bbe2ba2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/legacy/api/DataAPI.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -679,15 +679,15 @@ Local<Value> MoneyClass::getHistory(const Arguments& args) {
679679
string res{EconomySystem::getMoneyHist(args[0].asString().toString(), args[1].asNumber().toInt32())};
680680
return objectificationMoneyHistory(res);
681681
} catch (const std::invalid_argument& e) {
682-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Bad argument in MoneyGetHintory!");
682+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Bad argument in MoneyGetHistory!");
683683
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger());
684684
return Local<Value>();
685685
} catch (const std::out_of_range& e) {
686-
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Bad argument in MoneyGetHintory!");
686+
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().error("Bad argument in MoneyGetHistory!");
687687
ll::error_utils::printException(e, lse::LegacyScriptEngine::getInstance().getSelf().getLogger());
688688
return Local<Value>();
689689
}
690-
CATCH("Fail in MoneyGetHintory!");
690+
CATCH("Fail in MoneyGetHistory!");
691691
}
692692

693693
Local<Value> MoneyClass::clearHistory(const Arguments& args) {
@@ -948,7 +948,7 @@ Local<Value> DataClass::fromBase64(const Arguments& args) {
948948
CATCH("Fail in FromBase64!");
949949
}
950950

951-
// For Compability
951+
// For Compatibility
952952

953953
Local<Value> KVDBClass::newDb(const string& dir) {
954954
auto newp = new KVDBClass(dir);

src/legacy/api/FileSystemAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ Local<Value> FileClass::readAll(const Arguments& args) {
321321

322322
EngineScope scope(engine);
323323
try {
324-
Local<Value> readed = isBinary ? ByteBuffer::newByteBuffer(res.data(), res.size()).asValue()
324+
Local<Value> data = isBinary ? ByteBuffer::newByteBuffer(res.data(), res.size()).asValue()
325325
: String::newString(res).asValue();
326-
NewTimeout(callback.get(), {readed}, 1);
326+
NewTimeout(callback.get(), {data}, 1);
327327
}
328328
CATCH_IN_CALLBACK("FileReadAll")
329329
});

src/legacy/api/McAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ClassDefine<void> McClassBuilder = defineClass("mc")
5252
.function("setTime", &McClass::setTime)
5353
.function("getWeather", &McClass::getWeather)
5454
.function("setWeather", &McClass::setWeather)
55-
// For Compatity
55+
// For Compatibility
5656
.function("getAllScoreObjective", &McClass::getAllScoreObjectives)
5757
.function("getDisplayObjectives", &McClass::getDisplayObjective)
5858
.function("crash", &McClass::crashBDS)

src/legacy/api/PlayerAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2343,7 +2343,7 @@ Local<Value> PlayerClass::setBossBar(const Arguments& args) {
23432343
bs.writeFloat(0.0f, nullptr, nullptr);
23442344
bs.writeFloat(0.0f, nullptr, nullptr);
23452345
bs.writeFloat(0.0f, nullptr, nullptr);
2346-
// Atrribute
2346+
// Attribute
23472347
bs.writeUnsignedVarInt(0, nullptr, nullptr);
23482348
// DataItem
23492349
bs.writeUnsignedVarInt(0, nullptr, nullptr);

src/legacy/main/NodeJsHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ script::ScriptEngine* newEngine() {
121121
[](void* arg) {
122122
static_cast<script::ScriptEngine*>(arg)->destroy();
123123
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().debug(
124-
"Destory ScriptEngine for node.js [{}]",
124+
"Destroy ScriptEngine for node.js [{}]",
125125
arg
126126
);
127127
lse::LegacyScriptEngine::getInstance().getSelf().getLogger().debug("Destroy EnvironmentCleanupHook");
@@ -182,7 +182,7 @@ bool loadPluginCode(script::ScriptEngine* engine, std::string entryScriptPath, s
182182
183183
__dirname = __PluginPath;
184184
__filename = "{1}";
185-
(function ReplaeRequire() {{
185+
(function ReplaceRequire() {{
186186
const PublicModule = require('module').Module;
187187
const OriginalResolveLookupPaths = PublicModule._resolveLookupPaths;
188188
PublicModule._resolveLookupPaths = function (request, parent) {{

0 commit comments

Comments
 (0)