fixed penalty check bug

This commit is contained in:
2024-04-28 20:00:47 +00:00
parent 1b0ebd26c4
commit 995692f933
2 changed files with 5 additions and 2 deletions

View File

@@ -36,6 +36,9 @@ function logoutPlayer(id) {
export function sendUpdatedTeamInformations(teamId) {
let team = game.getTeam(teamId)
if(!team) {
return false;
}
team.sockets.forEach(socketId => {
io.of("player").to(socketId).emit("update_team", {
name: team.name,