Fix enter command; also resolves #761

This commit is contained in:
Daniel Saukel 2020-04-18 17:32:52 +02:00
parent 88679e6a51
commit f56687f322

View File

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