Repair Turret

by Klonan

Adds Repair Turrets

Content
4 months ago
0.17 - 2.0
118K
Combat Logistic network

b App crash

5 years ago
(updated 5 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

5 years ago

thanks, I fixed it

New response