1
0
Fork 0
mirror of https://github.com/ChomeNS/chomens-bot-mc.git synced 2025-04-24 04:53:39 -04:00

prevent end credit from breaking bot

This commit is contained in:
ChomeNS 2022-10-30 11:42:13 +07:00
parent cb94c55fd0
commit c46e26096b

View file

@ -289,6 +289,7 @@ function main() {
});
bot._client.on('keep_alive', (packet) => bot.write('keep_alive', {keepAliveId: packet.keepAliveId}));
bot._client.on('game_state_change', () => bot.write('client_command', {payload: 0}));
bot._client.on('kick_disconnect', function(data) {
const parsed = JSON.parse(data.reason);