hello, when trying to replace standard rails with powered tracks from mod https://mods.factorio.com/mod/James-Train-Mod while a fluid wagon is on it causes a crash - see below.
in my case it happens only when it replaces a rail while a fluid wagon is on top of it, in case of Cargo Wagon - no crash, same for locomotive.
What's also interesting is when trying to replace a rail under cargo/locomotive it shows an animation but doesn't replace them yet - it does however consumes it yet the icon for upgrade stays.
In vanilla construction robot's case it tries to replace them, fails and goes back, marking it as done even though nothing got replaced, we are not losing the items tho, basically just silently failing, preferably would be nice if Repair Turret would instead properly replace them or wait :)
video example: https://i.yatsukiko.me/XoCI8/XenazeYa59.mp4
crash report:
The mod Repair Turret 2 (1.3.0) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Repair_Turret_2::on_tick (ID 0)
Target must have health.
stack traceback:
[C]: in function 'create_entity'
Repair_Turret_2/script/repair_turret.lua:2580: in function 'try_upgrade_entity'
Repair_Turret_2/script/repair_turret.lua:757: in function 'check_target'
Repair_Turret_2/script/repair_turret.lua:1186: in function 'update'
Repair_Turret_2/script/repair_turret.lua:3077: in function 'check_turret_update'
Repair_Turret_2/script/repair_turret.lua:3355: in function 'handler'
core/lualib/event_handler.lua:72: in function <core/lualib/event_handler.lua:70>