From 1bd21a7a39857801b930574098015a1a6ed4e6fa Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 20 Nov 2026 00:00:01 +0900 Subject: [PATCH] Update events.lua --- exp_player_statistics/module/events.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/exp_player_statistics/module/events.lua b/exp_player_statistics/module/events.lua index 941e1f44..e267d8cd 100644 --- a/exp_player_statistics/module/events.lua +++ b/exp_player_statistics/module/events.lua @@ -94,10 +94,6 @@ local function get_cause_player(cause) local occupant = cause --- @type LuaEntity | LuaPlayer 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 occupant = crew end