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));
|
logChat(String.format(format, objects));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unload() {
|
public void unloadSimple() {
|
||||||
this.moduleManager.unload();
|
this.moduleManager.unload();
|
||||||
this.apiManager.unload();
|
this.apiManager.unload();
|
||||||
this.commandManager.unload();
|
this.commandManager.unload();
|
||||||
|
@ -165,6 +165,10 @@ public final class Seppuku {
|
||||||
this.cameraManager.unload();
|
this.cameraManager.unload();
|
||||||
this.altManager.unload();
|
this.altManager.unload();
|
||||||
this.shaderManager.unload();
|
this.shaderManager.unload();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void unload() {
|
||||||
|
unloadSimple();
|
||||||
|
|
||||||
this.getEventManager().dispatchEvent(new EventUnload());
|
this.getEventManager().dispatchEvent(new EventUnload());
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ public final class ConfigManager {
|
||||||
this.saveAll();
|
this.saveAll();
|
||||||
|
|
||||||
this.activeConfig = config;
|
this.activeConfig = config;
|
||||||
Seppuku.INSTANCE.unload();
|
Seppuku.INSTANCE.unloadSimple();
|
||||||
Seppuku.INSTANCE.reload();
|
Seppuku.INSTANCE.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void generateDirectories() {
|
private void generateDirectories() {
|
||||||
|
|
Loading…
Reference in New Issue