Add punchers name to ops panel punch event

event={type="punch", punch=true, name="foo"}
This commit is contained in:
Maverick2797 2021-10-25 14:39:28 +08:00 committed by orwell96
parent 2b21817b4f
commit cad4809b99
1 changed files with 2 additions and 2 deletions

4
advtrains_luaautomation/operation_panel.lua Normal file → Executable file
View File

@ -1,6 +1,6 @@
local function on_punch(pos, player)
atlatc.interrupt.add(0, pos, {type="punch", punch=true})
local function on_punch(pos,node,player)
atlatc.interrupt.add(0, pos, {type="punch", punch=true, name=player:get_player_name()})
end