Fix minecraft never throwing when server is unresponsive

This commit is contained in:
mmorrison 2019-11-11 03:04:51 -06:00
parent df3f04b506
commit 1c351fc3a4

View file

@ -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 = '';