mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 07:33:12 +09:00
1 parent
f77621376d
commit
ffd350f383
1 file changed
+1
-1
@@ -93,7 +93,7 @@ local function get_cause_player(cause)
|
|||||||
|
|
||||||
local occupant = cause --- @type LuaEntity | LuaPlayer
|
local occupant = cause --- @type LuaEntity | LuaPlayer
|
||||||
if crewed_vehicles[cause.type] then
|
if crewed_vehicles[cause.type] then
|
||||||
local crew = cause.get_driver() or cause.get_passenger()
|
local crew = cause.get_driver()
|
||||||
if not crew then return nil end
|
if not crew then return nil end
|
||||||
occupant = crew
|
occupant = crew
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user