mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 23:33:12 +09:00
Update events.lua
This commit is contained in:
1 parent
aaad274734
commit
4cffb71e9c
1 file changed
+1
@@ -95,6 +95,7 @@ local function get_cause_player(cause)
|
|||||||
if crewed_vehicles[cause.type] then
|
if crewed_vehicles[cause.type] then
|
||||||
local crew = cause.get_driver()
|
local crew = cause.get_driver()
|
||||||
if not crew and cause.type ~= "locomotive" then
|
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()
|
crew = cause.get_passenger()
|
||||||
end
|
end
|
||||||
if not crew then return nil end
|
if not crew then return nil end
|
||||||
|
|||||||
Reference in new issue
Block a user