Skip to content

Commit

Permalink
fix android multiplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwedeck committed Aug 1, 2021
1 parent 9111600 commit 3783420
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package jsettlers.main.android;

import jsettlers.network.infrastructure.log.ConsoleLogger;
import org.androidannotations.annotations.EApplication;

import android.app.Application;
Expand Down Expand Up @@ -104,7 +105,7 @@ public IMultiplayerConnector getMultiPlayerConnector() {
AndroidPreferences androidPreferences = new AndroidPreferences(this);
String server = androidPreferences.getServer();
if(serverHandle != null) server = "localhost";
multiplayerConnector = new MultiplayerConnector(server, androidPreferences.getPlayerId(), androidPreferences.getPlayerName(), null);
multiplayerConnector = new MultiplayerConnector(server, androidPreferences.getPlayerId(), androidPreferences.getPlayerName(), new ConsoleLogger("jsettlers.main.android-network"));
}
return multiplayerConnector;
}
Expand Down

0 comments on commit 3783420

Please sign in to comment.