Indicates current Tab in the Replay Center by deactivating the according button

Restricted Favoriting Replays to downloaded ones
This commit is contained in:
CrushedPixel
2015-05-16 23:54:00 +02:00
parent a8cc614e91
commit f27d31dcbb
4 changed files with 48 additions and 10 deletions

View File

@@ -115,6 +115,8 @@ public abstract class GuiReplayListExtended extends GuiListExtended {
int l = k / this.slotHeight;
if(this.mouseX >= i && this.mouseX <= j && l >= 0 && k >= 0 && l < this.getSize()) {
//LoadingListEntries should not do anything
if(this.getListEntry(l) instanceof GuiLoadingListEntry) return;
boolean flag1 = l == this.selectedElement && Minecraft.getSystemTime() - this.lastClicked < 250L;
this.elementClicked(l, flag1, this.mouseX, this.mouseY);
this.selectedElement = l;