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

@@ -10,13 +10,8 @@ public class GuiLoadingListEntry implements IGuiListEntry {
boolean registered = false;
private final Minecraft mc = Minecraft.getMinecraft();
private GuiReplayListExtended parent;
private final String message = I18n.format("replaymod.gui.loading")+"...";
public GuiLoadingListEntry(GuiReplayListExtended parent) {
this.parent = parent;
}
@Override
public void drawEntry(int slotIndex, int x, int y, int listWidth, int slotHeight, int mouseX, int mouseY, boolean isSelected) {
try {