From 834ce1f611e5364a3f3d4cdbefcb2d094328c9ba Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 25 Jul 2020 15:27:04 -0400 Subject: [PATCH] Correct issue where awkward splash wouldn't brew --- mods/ITEMS/mcl_brewing/init.lua | 2 +- mods/ITEMS/mcl_potions/init.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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