fix more bugs

This commit is contained in:
Badbird-5907
2022-06-17 22:02:52 -04:00
parent 855d6ede79
commit e3533b9e92
8 changed files with 69 additions and 24 deletions

View File

@@ -63,6 +63,10 @@ public class AICommand extends CommandInstance implements AIManager {
desc = "Begin an AI training session."
)
public void reinforcement(Player sender, @Arg("population-size") int populationSize, @Arg("name") String name, @OptArg("skin") String skin) {
//FIXME: Sometimes, bots will become invisible, or just stop working if they're the last one alive, this has been partially fixed (invis part) see Terminator#removeBot, which removes the bot.
//This seems to fix it for the most part, but its still buggy, as the bot will sometimes still freeze
//see https://cdn.carbonhost.cloud/6201479d7b237373ab269385/screenshots/javaw_DluMN4m0FR.png
//Blocks are also not placeable where bots have died
if (agent != null) {
sender.sendMessage("A session is already active.");
return;