it's late and I can't be bothered working out why git reset isn't working on this file

This commit is contained in:
UnknownShadow200 2018-05-18 22:55:21 +10:00
parent 9461bbbf59
commit ec690648f8

View File

@ -162,19 +162,19 @@ namespace ClassicalSharp.Gui.Screens {
game.Gui.ShowOverlay(overlay, true);
}
public override void Render(double delta) {
base.Render(delta);
Request item;
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
long contentLength = (long)item.Data;
if (contentLength <= 0) return;
string url = Identifier.Substring(3);
float contentLengthMB = (contentLength / 1024f / 1024f);
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
ContextLost();
ContextRecreated();
public override void Render(double delta) {
base.Render(delta);
Request item;
if (!game.Downloader.TryGetItem(Identifier, out item) || item.Data == null) return;
long contentLength = (long)item.Data;
if (contentLength <= 0) return;
string url = Identifier.Substring(3);
float contentLengthMB = (contentLength / 1024f / 1024f);
lines[3] = "Download size: " + contentLengthMB.ToString("F3") + " MB";
ContextLost();
ContextRecreated();
}
}
}