puncher not player

This commit is contained in:
Sirrobzeroone 2021-09-27 22:53:28 +10:00
parent dfa0dc4a7b
commit a703b07871

View File

@ -34,7 +34,7 @@ function fluid_lib.register_extractor_node(nodename, nodedef)
nodedef.on_punch = function (pos, node, puncher, pointed_thing) nodedef.on_punch = function (pos, node, puncher, pointed_thing)
minetest.get_node_timer(pos):start(1.0) minetest.get_node_timer(pos):start(1.0)
minetest.chat_send_player(player:get_player_name(),"Pump Started") minetest.chat_send_player(puncher:get_player_name(),"Pump Started")
minetest.chat_send_all("Pump Started") minetest.chat_send_all("Pump Started")
minetest.node_punch(pos, node, puncher, pointed_thing) minetest.node_punch(pos, node, puncher, pointed_thing)
end end