This commit is contained in:
Evert Prants 2018-12-17 18:18:18 +02:00
parent c59ff190cc
commit d1f9449b84
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,6 @@ function ele.register_fluid_generator(nodename, nodedef)
on_timer = function (pos, elapsed)
local refresh = false
local meta = minetest.get_meta(pos)
local nodename = minetest.get_node(pos).name
local burn_time = meta:get_int("burn_time")
local burn_totaltime = meta:get_int("burn_totaltime")

View File

@ -91,7 +91,7 @@ local function timer(pos, elapsed)
if fl_buffer.fluid == "" then
local node = minetest.get_node_or_nil(ppos)
if not node or node.name == "air" then
if not node or node.name == "air" or (bucket.liquids[node.name] and bucket.liquids[node.name].flowing == node.name) then
plevel = plevel - 1
status = "Seeking"
refresh = true
@ -102,7 +102,7 @@ local function timer(pos, elapsed)
end
-- Valid liquid, proceed pumping
if bucket.liquids[node.name] then
if bucket.liquids[node.name] and bucket.liquids[node.name].source == node.name then
fl_buffer.fluid = node.name
refresh = true
else