Repair Turret

by Klonan

Adds Repair Turrets

Content
4 months ago
0.17 - 2.1
139K
Combat Logistic network

g Error occurring when replacing a turret

14 days ago

Мод Repair Turret (2.1.0) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event Repair_Turret::on_tick (ID 0)
Repair_Turret/script/repair_turret.lua:295: assertion failed!
stack traceback:
[C]: in function 'assert'
Repair_Turret/script/repair_turret.lua:295: in function 'is_valid_for_entity'
Repair_Turret/script/repair_turret.lua:448: in function 'find_nearby_turrets'
Repair_Turret/script/repair_turret.lua:987: in function 'check_ghost'
Repair_Turret/script/repair_turret.lua:1006: in function 'check_ghost_check_queue'
Repair_Turret/script/repair_turret.lua:1043: in function 'handler'
core/lualib/event_handler.lua:72: in function <core/lualib/event_handler.lua:70>

To make it easier for you to reproduce the error, I have attached a save file. Take the blueprint from the chest and apply it to the drone station in the center using a forced placement (Ctrl + Shift); this will replace the existing repair turrets with different ones, triggering the error.
https://drive.google.com/drive/folders/1H4vIEH-3FFrFpv9el6I6BEYzFQ9DPdqW?usp=sharing

New response