To reproduce, put in control.lua the below. Place a car, confirm it is minable, now get in the car. The assert will fail despite the car being minable and it being explicitly set to true
Code: Select all
script.on_event(defines.events.on_tick, function(e)
for index, player in pairs(game.connected_players) do
if player and player.driving and player.vehicle then
player.vehicle.minable = true
assert(player.vehicle.minable)
end
end
end)