From 70f118157743bbd6c4b69df07520588c437298d3 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Wed, 12 Jan 2022 01:58:21 +0000 Subject: [PATCH] don't hide errors --- lib/loader.js | 2 +- test/internalTest.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/loader.js b/lib/loader.js index 79e264924..4b631b85c 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -63,7 +63,7 @@ function createBot (options = {}) { options.username = options.username ?? 'Player' options.version = options.version ?? false options.plugins = options.plugins ?? {} - options.hideErrors = options.hideErrors ?? true + options.hideErrors = options.hideErrors ?? false options.logErrors = options.logErrors ?? true options.loadInternalPlugins = options.loadInternalPlugins ?? true options.client = options.client ?? null diff --git a/test/internalTest.js b/test/internalTest.js index e67b32243..967c601f3 100644 --- a/test/internalTest.js +++ b/test/internalTest.js @@ -79,7 +79,6 @@ for (const supportedVersion of mineflayer.testedVersions) { } return loginPacket } - bot.on('error', e => console.log(e)) done() }) }) @@ -159,7 +158,7 @@ for (const supportedVersion of mineflayer.testedVersions) { server.on('login', (client) => { client.write('login', bot.test.generateLoginPacket()) const chunk = new Chunk() - // chunk.setBlockType(pos, goldId) + chunk.setBlockType(pos, goldId) client.write('map_chunk', generateChunkPacket(chunk)) }) })