diff --git a/chemistry/ta4_doser.lua b/chemistry/ta4_doser.lua index 0888542..09fb175 100644 --- a/chemistry/ta4_doser.lua +++ b/chemistry/ta4_doser.lua @@ -157,7 +157,9 @@ local function untake(recipe, pos, liquids) for _,item in pairs(recipe.input) do if item.name ~= "" then 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