Fix excess divider mess in message display.
This commit is contained in:
parent
066ec431ff
commit
1464070339
@ -206,14 +206,11 @@ func displayMessageSection[C StatsCollection](p *Player[C]) bool {
|
||||
if len(p.TemporaryMessages) == 0 {
|
||||
return false
|
||||
}
|
||||
hasPrevious := false
|
||||
for _, m := range p.TemporaryMessages {
|
||||
if m != nil {
|
||||
if hasPrevious {
|
||||
lightDivider()
|
||||
}
|
||||
display(m)
|
||||
hasPrevious = true
|
||||
} else {
|
||||
fmt.Println()
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user