Should be fixed now, thanks for reporting.
NP, Your mod worth the hassle.
But I have another issue. If I mount Titan and kill something with its main gun, game spits this:
https://i2.imageban.ru/out/2024/10/01/740f8207898d85d0ec0a41d9f2c3b4a6.png
I'm pretty sure, that this is new error massage, but like in 0.1.3 I managed to fix it in both cases by simply commenting out this code:
local ammo = event.cause.get_inventory(defines.inventory.car_ammo)[event.cause.selected_gun_index]
if ammo.valid_for_read then
ammo = ammo.name
end
But maybe you can come up with more robust solution?
What did I commented anyway? x) Script for "bounty" bullets in cars?