From 50e44fcb7e57c55f8644b1dff3ecac2f5835e735 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Wed, 15 Jun 2022 01:05:13 -0400 Subject: [PATCH] Fix Magic Skin breaking Modded Crafting --- eid_bagofcrafting.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eid_bagofcrafting.lua b/eid_bagofcrafting.lua index f47bcebf..de0c3422 100644 --- a/eid_bagofcrafting.lua +++ b/eid_bagofcrafting.lua @@ -543,7 +543,9 @@ local function GameStartCrafting() for i=1,EID.XMLMaxItemID do itemPool:AddRoomBlacklist(i) end local collID = itemPool:GetCollectible(poolNum, false, 1, 25) - while collID ~= 25 and collID > 0 do + local attempts = CraftingMaxItemID + while collID ~= 25 and collID ~= 642 and collID > 0 and attempts > 0 do + attempts = attempts - 1 table.insert(CraftingItemPools[poolNum+1], {collID, 1.0}) itemPool:AddRoomBlacklist(collID) collID = itemPool:GetCollectible(poolNum, false, 1, 25)