1.3 hotfix

This commit is contained in:
JaTiTV 2023-07-16 11:43:13 +02:00
parent 7e6c889583
commit 97fc283951
1 changed files with 2 additions and 1 deletions

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) {