mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-02 04:37:47 +00:00
Fix chess board broadcast
This commit is contained in:
parent
dda95f1f5f
commit
b233bddab5
1 changed files with 3 additions and 0 deletions
|
@ -167,14 +167,17 @@ public class GameChess extends GamehallGame {
|
|||
if (this.board.isDraw()) {
|
||||
this.gameFinished = true;
|
||||
this.showChat("The chess game has ended in a draw");
|
||||
this.broadcastMap();
|
||||
return;
|
||||
} else if (this.board.isStaleMate()) {
|
||||
this.gameFinished = true;
|
||||
this.showChat("The chess game has encountered a stalemate");
|
||||
this.broadcastMap();
|
||||
return;
|
||||
} else if (this.board.isMated()) {
|
||||
this.gameFinished = true;
|
||||
this.showChat(player.getDetails().getName() + " has won the chess game");
|
||||
this.broadcastMap();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue