From b8c7c2d9e82536423e4d248816be8bab39cc7053 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Tue, 26 Sep 2023 19:51:34 +0300 Subject: [PATCH] small comments cleanup --- src/index.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1c1883cd..f8aec05d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -350,14 +350,6 @@ async function connect(connectOptions: { if (proxy) { console.log(`using proxy ${proxy} ${proxyport}`) - // check proxy server availability for proper error message - // todo fix correctly - // try { - // await fetch(`http://${proxy}:${proxyport}/api/vm/net`, { method: 'GET' }) - // } catch (err) { - // console.error(err) - // throw new Error(`Proxy server ${proxy}:${proxyport} is not available`) - // } //@ts-expect-error net.setProxy({ hostname: proxy, port: proxyport }) } @@ -514,7 +506,6 @@ async function connect(connectOptions: { bot.once('spawn', () => { if (p2pConnectTimeout) clearTimeout(p2pConnectTimeout) - // todo display notification if not critical const mcData = require('minecraft-data')(bot.version) setLoadingScreenStatus('Placing blocks (starting viewer)')