forked from IF-LK-2020/wordle
fixed wrong game start message
This commit is contained in:
@@ -148,8 +148,6 @@ public class Game {
|
||||
|
||||
String args = msg.substring(5);
|
||||
|
||||
System.out.println(wordle);
|
||||
|
||||
if (args.length() == 5) {
|
||||
|
||||
databaseConnector.executeStatement("SELECT word FROM words WHERE word LIKE '" + args + "'");
|
||||
@@ -300,7 +298,7 @@ public class Game {
|
||||
|
||||
databaseConnector.executeStatement("SELECT * FROM Spielstand WHERE Username = '" + user.getName() + "'");
|
||||
QueryResult result = databaseConnector.getCurrentQueryResult();
|
||||
if (result != null && result.getData().length > 0) {
|
||||
if (result != null && result.getData().length > 0 && !result.getData()[0][0].equals("null")) {
|
||||
boolean foundEnd = false;
|
||||
for (int i = 0; i < 5; i++) {
|
||||
if (!result.getData()[0][i].equals("null")) {
|
||||
|
||||
Reference in New Issue
Block a user