mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +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
|
end
|
||||||
-- if any stand holds a new potion, return the list of new potions
|
-- 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
|
if was_alchemy[i] then return stands end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -408,13 +408,19 @@ local mod_table = {
|
||||||
function mcl_potions.get_alchemy(ingr, pot)
|
function mcl_potions.get_alchemy(ingr, pot)
|
||||||
|
|
||||||
if output_table[pot] ~= nil then
|
if output_table[pot] ~= nil then
|
||||||
|
|
||||||
local brew_table = output_table[pot]
|
local brew_table = output_table[pot]
|
||||||
|
|
||||||
if brew_table[ingr] ~= nil then
|
if brew_table[ingr] ~= nil then
|
||||||
return brew_table[ingr]
|
return brew_table[ingr]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
if mod_table[ingr] ~= nil then
|
||||||
|
|
||||||
elseif mod_table[ingr] ~= nil then
|
|
||||||
local brew_table = mod_table[ingr]
|
local brew_table = mod_table[ingr]
|
||||||
|
|
||||||
if brew_table[pot] ~= nil then
|
if brew_table[pot] ~= nil then
|
||||||
return brew_table[pot]
|
return brew_table[pot]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue