ta4_doser: Fix a bug that caused a server crash
This commit is contained in:
parent
b9454b2173
commit
5c14b3bfbe
@ -157,10 +157,12 @@ 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]
|
||||
if outdir then
|
||||
liquid.untake(pos, outdir, item.name, item.num)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function dosing(pos, nvm, elapsed)
|
||||
-- trigger reactor (power)
|
||||
|
Loading…
Reference in New Issue
Block a user