fixes
This commit is contained in:
parent
c59ff190cc
commit
d1f9449b84
@ -44,7 +44,6 @@ function ele.register_fluid_generator(nodename, nodedef)
|
|||||||
on_timer = function (pos, elapsed)
|
on_timer = function (pos, elapsed)
|
||||||
local refresh = false
|
local refresh = false
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local nodename = minetest.get_node(pos).name
|
|
||||||
|
|
||||||
local burn_time = meta:get_int("burn_time")
|
local burn_time = meta:get_int("burn_time")
|
||||||
local burn_totaltime = meta:get_int("burn_totaltime")
|
local burn_totaltime = meta:get_int("burn_totaltime")
|
||||||
|
@ -91,7 +91,7 @@ local function timer(pos, elapsed)
|
|||||||
|
|
||||||
if fl_buffer.fluid == "" then
|
if fl_buffer.fluid == "" then
|
||||||
local node = minetest.get_node_or_nil(ppos)
|
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
|
plevel = plevel - 1
|
||||||
status = "Seeking"
|
status = "Seeking"
|
||||||
refresh = true
|
refresh = true
|
||||||
@ -102,7 +102,7 @@ local function timer(pos, elapsed)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Valid liquid, proceed pumping
|
-- 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
|
fl_buffer.fluid = node.name
|
||||||
refresh = true
|
refresh = true
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user