From 4cffb71e9c6041d7b28fb401103b5b00b421ad34 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 16 Nov 2026 19:52:04 +0900 Subject: [PATCH] Update events.lua --- exp_player_statistics/module/events.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/exp_player_statistics/module/events.lua b/exp_player_statistics/module/events.lua index acfb3874..941e1f44 100644 --- a/exp_player_statistics/module/events.lua +++ b/exp_player_statistics/module/events.lua @@ -95,6 +95,7 @@ local function get_cause_player(cause) if crewed_vehicles[cause.type] then local crew = cause.get_driver() if not crew and cause.type ~= "locomotive" then + -- train passenger could be more than one. also access by LuaEntity.train?.passengers -> [] crew = cause.get_passenger() end if not crew then return nil end