[bugfix] - avoid create new instance of RobotEngine on every command

This commit is contained in:
poweronoff 2017-04-21 23:01:58 +02:00
parent 435c48713b
commit 516eb6a4eb

View File

@ -19,8 +19,9 @@ public class LoopingConsole {
printUsageBanner();
RobotEngine robotEngine = new RobotEngine();
while (true) {
RobotEngine robotEngine = new RobotEngine();
System.out.print("> ");
String input = br.readLine();
robotEngine.commandBot(input);