This commit is contained in:
Anuken
2020-06-25 22:34:38 -04:00
parent c12865eabc
commit 96f41b0cf3
4 changed files with 0 additions and 33 deletions
-12
View File
@@ -86,18 +86,6 @@ public class Maps{
maps.sort();
});
Events.on(ContentReloadEvent.class, event -> {
reload();
for(Map map : maps){
try{
map.texture = map.previewFile().exists() ? new Texture(map.previewFile()) : new Texture(MapIO.generatePreview(map));
readCache(map);
}catch(Exception e){
e.printStackTrace();
}
}
});
if(Core.assets != null){
((CustomLoader) Core.assets.getLoader(Content.class)).loaded = this::createAllPreviews;
}