Fix enter command; also resolves #761
This commit is contained in:
parent
88679e6a51
commit
f56687f322
|
@ -69,7 +69,7 @@ public class EnterCommand extends DCommand {
|
|||
return;
|
||||
}
|
||||
|
||||
if (joining.getGame() != null) {
|
||||
if (joining != null && joining.getGame() != null) {
|
||||
MessageUtil.sendMessage(sender, DMessage.ERROR_LEAVE_GAME.getMessage());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue