Add punchers name to ops panel punch event
event={type="punch", punch=true, name="foo"}
This commit is contained in:
parent
2b21817b4f
commit
cad4809b99
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
local function on_punch(pos, player)
|
local function on_punch(pos,node,player)
|
||||||
atlatc.interrupt.add(0, pos, {type="punch", punch=true})
|
atlatc.interrupt.add(0, pos, {type="punch", punch=true, name=player:get_player_name()})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue