1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-26 03:52:22 +02:00

Mtn v3 - super minor fix

This commit is contained in:
Gerkiz 2023-01-10 00:13:29 +01:00
parent 6143d05d91
commit 53364e477a

View File

@ -821,6 +821,10 @@ Gui.on_click(
local cars = ICT.get('cars')
local c = Functions.get_owner_car_object(cars, player)
local car = cars[c]
if not car then
return
end
local entity = car.entity
if entity and entity.valid then
Functions.kill_car_but_save_surface(entity)