Fix issue with a player not being able to spawn when they join somone in co-op with a singleplayer team of more than the max allowed amount

This commit is contained in:
Melledy
2022-04-19 01:43:38 -07:00
parent 3cc025efe0
commit 7417a1b62c
3 changed files with 6 additions and 5 deletions

View File

@@ -152,6 +152,7 @@ public class World implements Iterable<GenshinPlayer> {
// Copy main team to mp team
if (this.isMultiplayer()) {
player.getTeamManager().getMpTeam().copyFrom(player.getTeamManager().getCurrentSinglePlayerTeamInfo(), player.getTeamManager().getMaxTeamSize());
player.getTeamManager().setCurrentCharacterIndex(0);
}
// Add to scene