mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 01:25:33 -05:00
improve ?
This commit is contained in:
parent
bb26fe5ba0
commit
6225eef683
1 changed files with 4 additions and 4 deletions
|
@ -121,11 +121,11 @@ 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)
|
||||
|
||||
} else {
|
||||
bot.emit('player_removed', player, packet)
|
||||
bot.players.removePlayer(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { inject }
|
||||
|
|
Loading…
Reference in a new issue