Fix dofile without MCM

This commit is contained in:
Buurazu authored and GitHub committed 2022-02-07 03:41:48 -05:00
1 parent f13cbfe0b5
commit 2e2cd19fbf
1 file changed
+2 -2
+2 -2
View File
@@ -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 -- Only works if the new items are at Weight 1.0 in their item pools, but better than nothing
local function GameStartCrafting() local function GameStartCrafting()
if EID.Config["BagOfCraftingModdedRecipes"] and not EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_TMTRAINER) and EID.itemConfig:GetCollectible(EID.XMLMaxItemID+1) ~= nil then 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 -- Items past max ID detected
CraftingMaxItemID = EID.XMLMaxItemID -- XMLMaxItemID is never modified CraftingMaxItemID = EID.XMLMaxItemID -- XMLMaxItemID is never modified
-- Add new item qualities -- Add new item qualities
@@ -542,7 +542,7 @@ local function GameStartCrafting()
sortNeeded = true sortNeeded = true
elseif moddedCrafting then elseif moddedCrafting then
-- we had modded items; they have since been disabled -- we had modded items; they have since been disabled
dofile("eid_xmldata") dofile(EID.modPath .. "eid_xmldata.lua")
moddedCrafting = false moddedCrafting = false
sortNeeded = true sortNeeded = true
end end