mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-28 18:59:47 +01:00
server now shuts down with invalid ship placement
This commit is contained in:
parent
4fff32c13e
commit
806c00c94a
@ -150,6 +150,7 @@ public class ServerGameLogic implements ClientInterpreter {
|
||||
|
||||
if (!validateShips(ships)) {
|
||||
LOGGER.log(Level.ERROR, "Invalid ship placement by player {0}", from);
|
||||
send(cp, null );
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user