Repair Turret

by Klonan

Adds Repair Turrets

Content
1 year, 2 months ago
0.17 - 1.1
82.8K
Combat Logistic network

b App crash

3 years ago
(updated 3 years ago)

Hello,
In repair_turret.lua around line 905 you should check for entities not nil before using next. Quick dirty fix hereafter:

if turret_data and turret_data.targets and not next(turret_data.targets) then
return true
end

if turret_data and turret_data.low_priority_queue and not next(turret_data.low_priority_queue) then
return true
end

if turret_data and turret_data.checked_queue and not next(turret_data.checked_queue) then
return true
end

3 years ago

thanks, I fixed it

New response