Punch fluid transfer node to refresh it

This commit is contained in:
Evert Prants 2018-07-08 14:15:25 +03:00
parent 218d4ae691
commit 016379e444
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 5 additions and 1 deletions

View File

@ -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