This commit is contained in:
Anuken
2019-08-22 21:08:44 -04:00
parent bef7394004
commit c9d0619289
@@ -154,7 +154,7 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
@Override @Override
public void host(int port) throws IOException{ public void host(int port) throws IOException{
smat.createLobby(LobbyType.values()[Core.settings.getInt("lobbytype", 1)], 32); smat.createLobby(LobbyType.values()[Core.settings.getInt("lobbytype", 2)], 32);
} }
@Override @Override
@@ -275,6 +275,7 @@ public class SteamNetImpl implements SteamNetworkingCallback, SteamMatchmakingCa
@Override @Override
public void onLobbyMatchList(int matches){ public void onLobbyMatchList(int matches){
if(lobbyDoneCallback != null){ if(lobbyDoneCallback != null){
for(int i = 0; i < matches; i++){ for(int i = 0; i < matches; i++){
SteamID lobby = smat.getLobbyByIndex(i); SteamID lobby = smat.getLobbyByIndex(i);