aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2021-10-25 14:39:28 +0800
committerorwell96 <orwell@bleipb.de>2023-03-12 17:24:27 +0100
commitcad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50 (patch)
tree3a4ef60934231554677c812d18faeee5a2a3d256
parent2b21817b4fee688f72988b5707fbeb6f7c532e98 (diff)
downloadadvtrains-cad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50.tar.gz
advtrains-cad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50.tar.bz2
advtrains-cad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50.zip
Add punchers name to ops panel punch eventrelease-2.4.2
event={type="punch", punch=true, name="foo"}
-rwxr-xr-x[-rw-r--r--]advtrains_luaautomation/operation_panel.lua4
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