It works well at the beginning of the game, but it doesn't work anymore after a few hours of game time. It's not okay to re-click the toggle button.
Only this mod and base mod test is loaded at this point, and the bugs will still attack.
Factorio version: 1.1.6 ,this mod version: 0.2.1
Hm, could it be that there are a -lot- of biters out there? The script has to iterate over all of them to remove them. This can take some time if there's a lot of them.
The game didn't take long, the number of bugs was still small, the bugs were still alive after the button switch, and a few minutes later the bugs continued to attack
I see what the problem is. Your biters aren't part of the normal "Enemy" force ("faction), one of your mods assigned them to "biter_faction_5".
I should have a update out for you, soon.