mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-08-27 19:14:02 -05:00
QR2: Don't increment join index for existing players
This commit is contained in:
@@ -75,11 +75,14 @@ func processResvOK(moduleName string, matchVersion int, reservation common.Match
|
||||
logging.Notice(moduleName, "Created new group", aurora.Cyan(group.GroupName))
|
||||
}
|
||||
|
||||
// TODO: Check if the sender is the actual server (host) once host migration works
|
||||
|
||||
// Keep group ID updated
|
||||
group.GroupID = resvOK.GroupID
|
||||
|
||||
if group.Players[destination] {
|
||||
// Player is already in the group
|
||||
return true
|
||||
}
|
||||
|
||||
logging.Info(moduleName, "New player", aurora.BrightCyan(destination.Data["dwc_pid"]), "in group", aurora.Cyan(group.GroupName))
|
||||
|
||||
group.LastJoinIndex++
|
||||
|
||||
Reference in New Issue
Block a user