typo: correct spelling errors

This commit is contained in:
2026-06-14 00:22:06 +08:00
Unverified
parent 69c8fc2721
commit d683879923
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ void saveInventory(Player& player) {
auto& pl = static_cast<gmlib::GMPlayer&>(player); auto& pl = static_cast<gmlib::GMPlayer&>(player);
auto uuid = pl.getUuid(); auto uuid = pl.getUuid();
ll::file_utils::writeFile( ll::file_utils::writeFile(
"./plugins/InventoryChecker/save/" + uuid.asString() + ".dat", "./plugins/InventoryCheck/save/" + uuid.asString() + ".dat",
pl.getNbt()->toBinaryNbt(), pl.getNbt()->toBinaryNbt(),
true true
); );
@@ -63,7 +63,7 @@ bool validSetNbt(mce::UUID uuid, const std::unique_ptr<CompoundTag>& nbt) {
bool resumeInventory(Player& player) { bool resumeInventory(Player& player) {
auto& pl = static_cast<gmlib::GMPlayer&>(player); auto& pl = static_cast<gmlib::GMPlayer&>(player);
auto uuid = pl.getUuid(); auto uuid = pl.getUuid();
std::string path = "./plugins/InventoryChecker/save/" + uuid.asString() + ".dat"; std::string path = "./plugins/InventoryCheck/save/" + uuid.asString() + ".dat";
if (auto binaryData = ll::file_utils::readFile(path, true)) { if (auto binaryData = ll::file_utils::readFile(path, true)) {
std::filesystem::remove(path); std::filesystem::remove(path);
if (auto nbt = CompoundTag::fromBinaryNbt(binaryData.value())) { if (auto nbt = CompoundTag::fromBinaryNbt(binaryData.value())) {
+1 -1
View File
@@ -11,7 +11,7 @@ if not has_config("vs_runtime") then
set_runtimes("MD") set_runtimes("MD")
end end
target("InventoryChecker") target("InventoryCheck")
add_rules("@levibuildscript/linkrule") add_rules("@levibuildscript/linkrule")
add_rules("@levibuildscript/modpacker") add_rules("@levibuildscript/modpacker")
add_cxflags( "/EHa", "/utf-8", "/W4", "/w44265", "/w44289", "/w44296", "/w45263", "/w44738", "/w45204") add_cxflags( "/EHa", "/utf-8", "/W4", "/w44265", "/w44289", "/w44296", "/w45263", "/w44738", "/w45204")