Fix switching config completely breaking the client
This commit is contained in:
parent
134df829c7
commit
873d4ad0c6
|
@ -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());
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue