From 1c351fc3a4ed13e5ebac5adf1d253397a895ec31 Mon Sep 17 00:00:00 2001 From: mmorrison Date: Mon, 11 Nov 2019 03:04:51 -0600 Subject: [PATCH] Fix minecraft never throwing when server is unresponsive --- protocols/minecraft.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/minecraft.js b/protocols/minecraft.js index dc46c8f..b21fefe 100644 --- a/protocols/minecraft.js +++ b/protocols/minecraft.js @@ -32,6 +32,10 @@ class Minecraft extends Core { state.raw.vanilla = vanillaState; state.raw.bedrock = bedrockState; + if (!vanillaState && !bedrockState) { + throw new Error('No protocols succeeded'); + } + if (vanillaState) { try { let name = '';