From efc37309e27496bdeb8b94b5bee4ea4a0af0d33e Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sun, 21 Nov 2021 08:23:54 -0500 Subject: [PATCH] automatically use No Recipes Mode if modded items --- eid_bagofcrafting.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eid_bagofcrafting.lua b/eid_bagofcrafting.lua index f993582f..f92de2ce 100644 --- a/eid_bagofcrafting.lua +++ b/eid_bagofcrafting.lua @@ -601,9 +601,7 @@ local function detectModdedItems() maxItemID = EID:GetMaxCollectibleID() end if maxItemID > EID.XMLMaxItemID then - local customDescObj = EID:getDescriptionObj(5, 100, 710) - customDescObj.Description = EID.descriptions["en_us"].CraftingBagModError - EID:printDescription(customDescObj) + return true end return false end @@ -660,7 +658,7 @@ function EID:handleBagOfCraftingRendering() if EID.Config["DisplayBagOfCrafting"] == "hold" and not string.find(EID.player:GetSprite():GetAnimation(), "PickupWalk") then return false end - if detectModdedItems() or Game():GetRoom():GetFrameCount ()<2 then + if Game():GetRoom():GetFrameCount ()<2 then return false end @@ -745,7 +743,7 @@ function EID:handleBagOfCraftingRendering() table.sort(itemQuery, qualitySort) --Simplified Mode display - if (EID.Config["BagOfCraftingSimplifiedMode"]) then + if (EID.Config["BagOfCraftingSimplifiedMode"] or detectModdedItems()) then local customDescObj = EID:getDescriptionObj(5, 100, 710) customDescObj.Description = ""