Dieser Commit ist enthalten in:
Ursprung
afa9b4e533
Commit
4bdead92b5
@ -116,6 +116,6 @@ public class Fight {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean replayExists() {
|
public boolean replayExists() {
|
||||||
return Replay.hasReplay(fightID) && getGameMode() != null;
|
return getGameMode() != null && Replay.hasReplay(fightID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ import java.sql.ResultSet;
|
|||||||
|
|
||||||
public class Replay {
|
public class Replay {
|
||||||
|
|
||||||
private static final Statement hasReplay = new Statement("SELECT * FROM Replay WHERE id = ?");
|
private static final Statement hasReplay = new Statement("SELECT FightID FROM Replay WHERE FightID = ?");
|
||||||
|
|
||||||
public static boolean hasReplay(int id) {
|
public static boolean hasReplay(int id) {
|
||||||
return hasReplay.select(ResultSet::next, id);
|
return hasReplay.select(ResultSet::next, id);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren