Fix switching config completely breaking the client

This commit is contained in:
Ossian Winter 2022-10-02 16:31:55 +02:00
parent 134df829c7
commit 873d4ad0c6
No known key found for this signature in database
GPG Key ID: F670EB26E953FD3C
2 changed files with 7 additions and 3 deletions

View File

@ -145,7 +145,7 @@ public final class Seppuku {
logChat(String.format(format, objects));
}
public void unload() {
public void unloadSimple() {
this.moduleManager.unload();
this.apiManager.unload();
this.commandManager.unload();
@ -165,6 +165,10 @@ public final class Seppuku {
this.cameraManager.unload();
this.altManager.unload();
this.shaderManager.unload();
}
public void unload() {
unloadSimple();
this.getEventManager().dispatchEvent(new EventUnload());

View File

@ -33,8 +33,8 @@ public final class ConfigManager {
this.saveAll();
this.activeConfig = config;
Seppuku.INSTANCE.unload();
Seppuku.INSTANCE.reload();
Seppuku.INSTANCE.unloadSimple();
Seppuku.INSTANCE.init();
}
private void generateDirectories() {