1.3 hotfix

This commit is contained in:
JaTiTV 2023-07-16 11:43:13 +02:00
parent 7e6c889583
commit 97fc283951

View File

@ -44,10 +44,11 @@ public class Load {
public static void loadReload() { public static void loadReload() {
HandlerList.unregisterAll(chatListener); HandlerList.unregisterAll(chatListener);
HandlerList.unregisterAll(guiListener); HandlerList.unregisterAll(guiListener);
boolean newInstall = !new File(Main.getPath(), "config.yml").exists();
FileSelect.config(); FileSelect.config();
T2Ctemplate.onLoadSeparateStroke(Util.getPrefix()); T2Ctemplate.onLoadSeparateStroke(Util.getPrefix());
FileSelect.language(); FileSelect.language();
if (!new File(Main.getPath(), "config.yml").exists()) { if (newInstall) {
try { try {
CreateExampleAliasConfig.configCreate(); CreateExampleAliasConfig.configCreate();
} catch (Exception e) { } catch (Exception e) {