diff options
author | Maverick2797 <git.maverick2797@gmail.com> | 2021-10-25 14:39:28 +0800 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2023-03-12 17:24:27 +0100 |
commit | cad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50 (patch) | |
tree | 3a4ef60934231554677c812d18faeee5a2a3d256 /advtrains_luaautomation | |
parent | 2b21817b4fee688f72988b5707fbeb6f7c532e98 (diff) | |
download | advtrains-release-2.4.2.tar.gz advtrains-release-2.4.2.tar.bz2 advtrains-release-2.4.2.zip |
Add punchers name to ops panel punch eventrelease-2.4.2
event={type="punch", punch=true, name="foo"}
Diffstat (limited to 'advtrains_luaautomation')
-rwxr-xr-x[-rw-r--r--] | advtrains_luaautomation/operation_panel.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_luaautomation/operation_panel.lua b/advtrains_luaautomation/operation_panel.lua index bfbbda4..c118ff3 100644..100755 --- a/advtrains_luaautomation/operation_panel.lua +++ b/advtrains_luaautomation/operation_panel.lua @@ -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 |