From cad4809b9917d4abbd1ed1dc3ddbc8cbd67b2d50 Mon Sep 17 00:00:00 2001 From: Maverick2797 Date: Mon, 25 Oct 2021 14:39:28 +0800 Subject: Add punchers name to ops panel punch event event={type="punch", punch=true, name="foo"} --- advtrains_luaautomation/operation_panel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 advtrains_luaautomation/operation_panel.lua (limited to 'advtrains_luaautomation') diff --git a/advtrains_luaautomation/operation_panel.lua b/advtrains_luaautomation/operation_panel.lua old mode 100644 new mode 100755 index bfbbda4..c118ff3 --- 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 -- cgit v1.2.3