mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
prevent end credit from breaking bot
This commit is contained in:
parent
cb94c55fd0
commit
c46e26096b
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue