Made chunk loading block independent from computer's performance

Fixed UI glitch in Survival caused by incorrect usage of the GL Manager
This commit is contained in:
Marius Metzger
2015-04-11 10:58:00 +02:00
parent 352fcbde4e
commit 96fa350bc6
5 changed files with 83 additions and 21 deletions

View File

@@ -87,6 +87,10 @@ public class ReplayHandler {
inPath = replaying;
}
public static void resetToleratedTimestamp() {
if(replaySender != null) replaySender.resetToleratedTimeStamp();
}
public static void stopHurrying() {
if(replaySender != null) replaySender.stopHurrying();
}
@@ -380,9 +384,16 @@ public class ReplayHandler {
ChannelPipeline pipeline = networkManager.channel().pipeline();
try {
ReplayMod.overlay.resetUI();
} catch(Exception e) {}
mc.addScheduledTask(new Runnable() {
@Override
public void run() {
try {
ReplayMod.overlay.resetUI();
} catch(Exception e) {
e.printStackTrace();
}
}
});
inReplay = true;
}