mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-08-20 04:44:05 +02:00
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)
|
||||
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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user