Fix dofile without MCM
This commit is contained in:
1 parent
f13cbfe0b5
commit
2e2cd19fbf
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user