Commit d8b3eb41 authored by Zachary Sistrunk's avatar Zachary Sistrunk

Update 3RaFactorioBot.js

Corrected crash due to faulty logic.
parent b1696060
......@@ -587,7 +587,7 @@ var admincommands = {
let forceids = savedata.channels[remove].forceids;
let forceamount = forceids.length
for (let i = 0; i < forceamount; i++) {
deleteForce(forceids[i]);
deleteForce(forceids[0]); //As each element 0 is deleted, the next force in line will become the new element 0.
}
}
//Delete the server registration and update the channel_list.json
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment