From ba1c92cf8b103fb99c54ba587133b228f1b50000 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Fri, 6 Oct 2023 18:03:29 +0100 Subject: [PATCH] add back math.floor --- Bloxstrap/Bootstrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index bb7b814..f0a96cc 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -96,7 +96,7 @@ namespace Bloxstrap if (Dialog is null) return; - int progressValue = (int)(_progressIncrement * _totalDownloadedBytes); + int progressValue = (int)Math.Floor(_progressIncrement * _totalDownloadedBytes); // bugcheck: if we're restoring a file from a package, it'll incorrectly increment the progress beyond 100 // too lazy to fix properly so lol