From 016379e444845e0bd06cbb52a6f38a669b3034ba Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 8 Jul 2018 14:15:25 +0300 Subject: [PATCH] Punch fluid transfer node to refresh it --- elepower_fapi/transfer_node.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elepower_fapi/transfer_node.lua b/elepower_fapi/transfer_node.lua index 8707960..5d1f2cf 100644 --- a/elepower_fapi/transfer_node.lua +++ b/elepower_fapi/transfer_node.lua @@ -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