add missing player parameter

fixes #25
This commit is contained in:
BuckarooBanzay 2020-10-13 14:29:20 +02:00
parent 9e23accb97
commit 68d08f7496

View File

@ -42,7 +42,7 @@ minetest.register_node("epic:send_mapblock", {
if fields.setpos then
minetest.chat_send_player(playername, "[epic] Please punch the desired target position")
epic.punchnode_callback({
epic.punchnode_callback(sender, {
timeout = 300,
callback = function(punch_pos)
local pos_str = minetest.pos_to_string(epic.to_relative_pos(pos, punch_pos))