Components now knows why client exist
This commit is contained in:
@ -54,7 +54,7 @@ func (p *PlayerList) ClientJoin(client *Client, player *Player) {
|
||||
}
|
||||
|
||||
// ClientLeft implement Component for PlayerList
|
||||
func (p *PlayerList) ClientLeft(_ *Client, player *Player) {
|
||||
func (p *PlayerList) ClientLeft(_ *Client, player *Player, _ error) {
|
||||
p.playersLock.Lock()
|
||||
defer p.playersLock.Unlock()
|
||||
delete(p.clients, player.UUID)
|
||||
|
Reference in New Issue
Block a user