diff --git a/src/InventoryCheck.cpp b/src/InventoryCheck.cpp index 67da847..a0c3e03 100644 --- a/src/InventoryCheck.cpp +++ b/src/InventoryCheck.cpp @@ -29,7 +29,7 @@ void saveInventory(Player& player) { auto& pl = static_cast(player); auto uuid = pl.getUuid(); ll::file_utils::writeFile( - "./plugins/InventoryChecker/save/" + uuid.asString() + ".dat", + "./plugins/InventoryCheck/save/" + uuid.asString() + ".dat", pl.getNbt()->toBinaryNbt(), true ); @@ -63,7 +63,7 @@ bool validSetNbt(mce::UUID uuid, const std::unique_ptr& nbt) { bool resumeInventory(Player& player) { auto& pl = static_cast(player); 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)) { std::filesystem::remove(path); if (auto nbt = CompoundTag::fromBinaryNbt(binaryData.value())) { diff --git a/xmake.lua b/xmake.lua index e500b9f..041ad84 100644 --- a/xmake.lua +++ b/xmake.lua @@ -11,7 +11,7 @@ if not has_config("vs_runtime") then set_runtimes("MD") end -target("InventoryChecker") +target("InventoryCheck") add_rules("@levibuildscript/linkrule") add_rules("@levibuildscript/modpacker") add_cxflags( "/EHa", "/utf-8", "/W4", "/w44265", "/w44289", "/w44296", "/w45263", "/w44738", "/w45204")