The Replay Viewer now loads its entries asynchronously to prevent Minecraft from freezing whenever the Replay Viewer is opened

This commit is contained in:
CrushedPixel
2015-06-04 16:48:58 +02:00
parent b9c46578af
commit 99718a1316
4 changed files with 48 additions and 22 deletions

View File

@@ -355,7 +355,7 @@ public class GuiReplayCenter extends GuiScreen implements GuiYesNoCallback {
private void updateCurrentList(Pagination pagination) {
elementSelected(-1);
currentList = new ReplayFileList(mc, width, height, 50, height - 60, this);
loadingListEntry = new GuiLoadingListEntry(currentList);
loadingListEntry = new GuiLoadingListEntry();
currentList.addEntry(loadingListEntry);
if(pagination.getLoadedPages() < 0) {