Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix: items not importing due to missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
sekwah41 committed Mar 31, 2023
1 parent f820758 commit 79ef9fd
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
--- src/original/moba-desktop/src/lol/utils/in-game-imports/in-game-items-import.js
+++ src/modified/moba-desktop/src/lol/utils/in-game-imports/in-game-items-import.js
@@ -44,7 +44,7 @@
@@ -38,13 +38,14 @@
const in_game_imports_types_1 = require("../../../../../moba-shared/src/lol/types/in-game-imports.types");
const lcu_connection_1 = require("../../../utils/lcu-connection");
const root_store_1 = require("../../../common/store/root-store");
+const environment_1 = require("../../../utils/environment");
function importLolGameItems(gameItemsData) {
return __awaiter(this, void 0, void 0, function* () {
try {
if (!gameItemsData.blocks.length)
return in_game_imports_types_1.LcuGameItemsImportStatus.EMPTY_BLOCKS_LIST;
const processGamePath = yield lcu_connection_1.getLCUPathFromProcess();
Expand All @@ -9,7 +16,7 @@
if (!gamePath)
return in_game_imports_types_1.LcuGameItemsImportStatus.GAME_PATH_NOT_FOUND;
const filePath = path_1.default.join(gamePath, 'Config', 'Global', 'Recommended', '!mobalytics.json');
@@ -70,4 +70,4 @@
@@ -70,4 +71,4 @@
});
}
exports.importLolGameItems = importLolGameItems;
Expand Down

0 comments on commit 79ef9fd

Please sign in to comment.