Browse Source

The game loop is now checking if the command exists.

remotes/origin/locations
David Hermann 2 years ago
parent
commit
4038f1bfd5
  1. 4
      src/main/java/org/bitbiome/InteractionLoop.java

4
src/main/java/org/bitbiome/InteractionLoop.java

@ -10,7 +10,9 @@ public class InteractionLoop {
boolean isRunning = true;
while (isRunning) {
String line = input.nextLine().toLowerCase();
System.out.println(line);
if (!Boot.instance.getCmdListener().perform(line.toLowerCase().split(" ")[0], input, isRunning, line)) {
System.out.println("Unknown Command");
}
}
}

Loading…
Cancel
Save