diff --git a/mods/ITEMS/mcl_brewing/init.lua b/mods/ITEMS/mcl_brewing/init.lua index 0d87eca77..c796606b9 100644 --- a/mods/ITEMS/mcl_brewing/init.lua +++ b/mods/ITEMS/mcl_brewing/init.lua @@ -95,7 +95,7 @@ local function brewable(inv) end -- if any stand holds a new potion, return the list of new potions - for i=1,table.getn(was_alchemy) do + for i=1,#was_alchemy do if was_alchemy[i] then return stands end end diff --git a/mods/ITEMS/mcl_potions/init.lua b/mods/ITEMS/mcl_potions/init.lua index 537e3f9c9..13152653e 100644 --- a/mods/ITEMS/mcl_potions/init.lua +++ b/mods/ITEMS/mcl_potions/init.lua @@ -408,13 +408,19 @@ local mod_table = { function mcl_potions.get_alchemy(ingr, pot) if output_table[pot] ~= nil then + local brew_table = output_table[pot] + if brew_table[ingr] ~= nil then return brew_table[ingr] end + + end + + if mod_table[ingr] ~= nil then - elseif mod_table[ingr] ~= nil then local brew_table = mod_table[ingr] + if brew_table[pot] ~= nil then return brew_table[pot] end