1
0
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:
Gerkiz 2025-01-03 17:26:10 +01:00
parent 4814c71f93
commit 9dabb4eecf

View File

@ -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