forked from External/mage
Some fixes to player quits game handling.
This commit is contained in:
parent
2835a4e152
commit
350897b0e2
4 changed files with 47 additions and 14 deletions
|
|
@ -379,7 +379,13 @@ public class GameController implements GameCallback {
|
|||
// }
|
||||
|
||||
public void quitMatch(UUID userId) {
|
||||
game.quit(getPlayerId(userId));
|
||||
UUID playerId = getPlayerId(userId);
|
||||
if (playerId != null) {
|
||||
GameSession gameSession = gameSessions.get(playerId);
|
||||
if (gameSession != null) {
|
||||
gameSession.quitGame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void sendPlayerAction(PlayerAction playerAction, UUID userId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue