Code: Select all
for _, bot in pairs(cell.to_charge_robots) do
bot.force = "neutral"
bot.force = "player"
end
It's... really hard to replicate, as the bug only happens to robots within that array and not any other way I've tried so far, so I had to use a dummy mod (zzzDebug) with the code above on on_tick for it, which I attached to this post, together with two savegames where the bug is happening (with robots already frozen and some about to freeze the next tick).