Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolleander committed Nov 1, 2023
1 parent a60da47 commit 00a5188
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ public class DummyLobby extends GameLobby{
public DummyLobby(){

}

}
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package com.broll.networklib.server.impl;


public class DummyServerLobby<L extends ILobbyData, P extends ILobbyData> extends ServerLobby<L,P>{
public DummyServerLobby() {
super(null, null, -1, null);
}

public void addDummyPlayer(DummyPlayer<P> player){
addPlayer(player);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void assignOwner() {
if (owner == null) {
if (!activePlayers.isEmpty()) {
//find next non bot and make him owner
getActivePlayers().stream().filter(it -> it instanceof BotPlayer == false).findFirst().ifPresent(player -> {
getActivePlayers().stream().filter(it -> !(it instanceof BotPlayer)).findFirst().ifPresent(player -> {
this.owner = player;
});
}
Expand Down

0 comments on commit 00a5188

Please sign in to comment.