mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-12-02 19:43:43 +01:00
Punch fluid transfer node to refresh it
This commit is contained in:
parent
218d4ae691
commit
016379e444
@ -25,7 +25,11 @@ function elefluid.register_transfer_node(nodename, nodedef)
|
||||
end
|
||||
end
|
||||
|
||||
nodedef.after_destruct = elefluid.refresh_node
|
||||
nodedef.on_punch = function (pos, node, puncher, pointed_thing)
|
||||
local meta = minetest.get_meta(pos)
|
||||
minetest.get_node_timer(pos):start(1.0)
|
||||
minetest.node_punch(pos, node, puncher, pointed_thing)
|
||||
end
|
||||
|
||||
-- Default transfer capacity
|
||||
if not nodedef.ele_fluid_pump_capacity then
|
||||
|
Loading…
Reference in New Issue
Block a user