improve ?

This commit is contained in:
ChomeNS 2022-12-28 19:08:55 +07:00
parent bb26fe5ba0
commit 6225eef683

View file

@ -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 }