mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Correct issue where awkward splash wouldn't brew
This commit is contained in:
parent
e5f0370c17
commit
834ce1f611
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
elseif mod_table[ingr] ~= nil then
|
||||
end
|
||||
|
||||
if mod_table[ingr] ~= nil then
|
||||
|
||||
local brew_table = mod_table[ingr]
|
||||
|
||||
if brew_table[pot] ~= nil then
|
||||
return brew_table[pot]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue