Added world data progress bar

This commit is contained in:
Anuken
2021-08-12 10:07:30 -04:00
parent a5fe8970c6
commit def1094357
3 changed files with 17 additions and 0 deletions

View File

@@ -272,6 +272,10 @@ public class Net{
throw new RuntimeException("Received stream chunk without a StreamBegin beforehand!");
}
builder.add(c.data);
ui.loadfrag.setProgress(builder.progress());
netClient.resetTimeout();
if(builder.isDone()){
streams.remove(builder.id);
handleClientReceived(builder.build());