mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-25 04:39:43 +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)) {
|
if (!validateShips(ships)) {
|
||||||
LOGGER.log(Level.ERROR, "Invalid ship placement by player {0}", from);
|
LOGGER.log(Level.ERROR, "Invalid ship placement by player {0}", from);
|
||||||
|
send(cp, null );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user