mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-05 13:15:03 +02:00
Mtn: revert validation of index.index for portable surface module
This commit is contained in:
parent
4814c71f93
commit
9dabb4eecf
@ -411,7 +411,7 @@ local function kick_players_out_of_vehicles(car)
|
||||
for _, player in pairs(game.connected_players) do
|
||||
local character = player.character
|
||||
if validate_entity(character) and character.driving then
|
||||
if car.surface.index == player.physical_surface.index then
|
||||
if car.surface == player.physical_surface.index then
|
||||
character.driving = false
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user