ta4_doser: Fix a bug that caused a server crash
This commit is contained in:
parent
b9454b2173
commit
5c14b3bfbe
@ -157,7 +157,9 @@ local function untake(recipe, pos, liquids)
|
|||||||
for _,item in pairs(recipe.input) do
|
for _,item in pairs(recipe.input) do
|
||||||
if item.name ~= "" then
|
if item.name ~= "" then
|
||||||
local outdir = liquids[item.name] or reload_liquids(pos)[item.name]
|
local outdir = liquids[item.name] or reload_liquids(pos)[item.name]
|
||||||
liquid.untake(pos, outdir, item.name, item.num)
|
if outdir then
|
||||||
|
liquid.untake(pos, outdir, item.name, item.num)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user