improve ?

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

View file

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