mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-30 02:55:44 -05:00
improve ?
This commit is contained in:
parent
bb26fe5ba0
commit
6225eef683
1 changed files with 4 additions and 4 deletions
|
@ -121,10 +121,10 @@ function inject (bot, dcclient, config) {
|
|||
|
||||
if (fullPlayer && players.some((name) => name === fullPlayer.name)) {
|
||||
bot.emit('player_vanished', player)
|
||||
return
|
||||
} else bot.emit('player_removed', player, packet)
|
||||
|
||||
bot.players.removePlayer(player)
|
||||
} else {
|
||||
bot.emit('player_removed', player, packet)
|
||||
bot.players.removePlayer(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue