why does this work

This commit is contained in:
Anuken
2019-10-02 23:17:06 -04:00
parent 3369de6bf7
commit cce0040eaf
4 changed files with 15 additions and 3 deletions
+10 -2
View File
@@ -221,18 +221,26 @@ public class Mods implements Loadable{
}
}
/** Reloads all mod content.*/
/** Reloads all mod content. How does this even work? I refuse to believe that it functions correctly.*/
public void reloadContent(){
//epic memory leak
Core.atlas = new TextureAtlas(Core.files.internal("sprites/sprites.atlas"));
Tex.load();
Tex.loadStyles();
Styles.load();
loaded.clear();
disabled.clear();
load();
buildFiles();
Musics.dispose();
Sounds.dispose();
Musics.load();
Sounds.load();
Core.assets.finishLoading();
content.clear();
content.createContent();
loadAsync();
loadSync();
buildFiles();
content.init();
content.load();
content.loadColors();