[bugfix] - avoid create new instance of RobotEngine on every command
This commit is contained in:
1 parent
7989a98628
commit
3aaef8b3d3
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user