Add hasCompletedJoin() check as suggested

This commit is contained in:
Andrew Steinborn
2018-09-06 16:09:13 -04:00
parent e86968e899
commit 51a85d372b

View File

@@ -102,8 +102,11 @@ public class BackendPlaySessionHandler implements MinecraftSessionHandler {
connection.getMinecraftConnection().close(); connection.getMinecraftConnection().close();
return; return;
} }
if (connection.hasCompletedJoin()) {
connection.getPlayer().getConnection().write(buf.retain()); connection.getPlayer().getConnection().write(buf.retain());
} }
}
@Override @Override
public void exception(Throwable throwable) { public void exception(Throwable throwable) {