From 8cbc95b5ef1024c1880a61a258659175f06dffac Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Fri, 24 Dec 2021 21:20:08 +0100 Subject: [PATCH] Default version in config (#261) * Update play_screen.js * Update config.json --- config.json | 3 ++- lib/menus/play_screen.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 46c029b..4623b4d 100644 --- a/config.json +++ b/config.json @@ -2,5 +2,6 @@ "defaultHost": "95.111.249.143", "defaultHostPort": 10000, "defaultProxy": "", - "defaultProxyPort": 0 + "defaultProxyPort": 0, + "defaultVersion": "1.17.1" } diff --git a/lib/menus/play_screen.js b/lib/menus/play_screen.js index e8d24ee..28d4730 100644 --- a/lib/menus/play_screen.js +++ b/lib/menus/play_screen.js @@ -76,6 +76,7 @@ class PlayScreen extends LitElement { this.serverport = config.defaultHostPort ?? 25565 this.proxy = config.defaultProxy this.proxyport = !config.defaultProxy && !config.defaultProxyPort ? '' : config.defaultProxyPort ?? 443 + this.version = config.defaultVersion }) }