use rgon to calculate bag of crafting (#968)

This commit is contained in:
Josh Retzer authored and GitHub committed 2026-06-19 12:15:17 +02:00
1 parent 3bf30b9c32
commit b488dc4186
1 file changed
+12
+12
View File
@@ -233,6 +233,18 @@ function EID:calculateBagOfCrafting(componentsTable)
table.sort(components)
local componentsAsString = table.concat(components, ",")
-- calculate the game's actual output, including any modifications to recipes.xml
if REPENTOGON and EntityPlayer.CalculateBagOfCraftingOutput then
local cacheResult = calculatedRecipes[componentsAsString]
if cacheResult ~= nil then
return cacheResult
end
local collectible, itemPool = EntityPlayer.CalculateBagOfCraftingOutput(components)
calculatedRecipes[componentsAsString] = collectible
return collectible
end
-- Check the fixed recipes
local cacheResult = CraftingFixedRecipes[componentsAsString]
if cacheResult ~= nil then