Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One team does not spawn on the beach map #58

Open
haykam821 opened this issue May 15, 2022 · 0 comments
Open

One team does not spawn on the beach map #58

haykam821 opened this issue May 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@haykam821
Copy link
Contributor

When a game on the beach map is started, all but one team will spawn. The players on the remaining team will spawn as spectator in the center of the map, likely meaning the team spawn returned by tryRespawn is null:

this.spawnLogic.resetPlayer(player, GameMode.SPECTATOR);
BwMap.TeamSpawn spawn = this.teamLogic.tryRespawn(participant);
if (spawn != null) {
this.playerLogic.spawnPlayer(player, spawn);
} else {
BedWars.LOGGER.warn("No spawn for player {}", participant.ref);
this.spawnLogic.spawnAtCenter(player);
}

@haykam821 haykam821 added the bug Something isn't working label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant