Correct issue where awkward splash wouldn't brew

This commit is contained in:
Brandon 2020-07-25 15:27:04 -04:00
parent e5f0370c17
commit 834ce1f611
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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