From 2e2cd19fbf529963d9fea6bac9c95fc0106105b8 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Mon, 7 Feb 2022 03:41:48 -0500 Subject: [PATCH] Fix dofile without MCM --- eid_bagofcrafting.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eid_bagofcrafting.lua b/eid_bagofcrafting.lua index 8cd60cda..c443533d 100644 --- a/eid_bagofcrafting.lua +++ b/eid_bagofcrafting.lua @@ -514,7 +514,7 @@ local moddedCrafting = false -- Only works if the new items are at Weight 1.0 in their item pools, but better than nothing local function GameStartCrafting() if EID.Config["BagOfCraftingModdedRecipes"] and not EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_TMTRAINER) and EID.itemConfig:GetCollectible(EID.XMLMaxItemID+1) ~= nil then - dofile("eid_xmldata") + dofile(EID.modPath .. "eid_xmldata.lua") -- Items past max ID detected CraftingMaxItemID = EID.XMLMaxItemID -- XMLMaxItemID is never modified -- Add new item qualities @@ -542,7 +542,7 @@ local function GameStartCrafting() sortNeeded = true elseif moddedCrafting then -- we had modded items; they have since been disabled - dofile("eid_xmldata") + dofile(EID.modPath .. "eid_xmldata.lua") moddedCrafting = false sortNeeded = true end