server now shuts down with invalid ship placement

This commit is contained in:
Johannes Schmelz 2024-10-06 00:37:20 +02:00
parent 4fff32c13e
commit 806c00c94a

View File

@ -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;
}