Server bug fix. Add player did not correspond with the params

This commit is contained in:
Johannes Schmelz
2024-11-18 00:24:15 +01:00
parent 11faeeaf45
commit 951b4c198c
2 changed files with 30 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ public class MonopolyServer implements MessageListener<HostedConnection>, Connec
@Override
public void connectionAdded(Server server, HostedConnection hostedConnection) {
LOGGER.log(Level.INFO, "new connection {0}", hostedConnection); //NON-NLS
logic.addPlayer(new Player(hostedConnection.getId()));
logic.addPlayer(hostedConnection.getId());
}
@Override