Fixed floating point issues with comparison

This commit is contained in:
Chomp
2025-03-08 09:22:53 +00:00
parent 0d23400db3
commit 0b38563aa3
@@ -343,8 +343,8 @@ public class QuestController(
output
);
// Complete
if (totalItemCountToRemove == handedInCount)
// Complete - handedInCount == totalItemCountToRemove
if (Math.Abs(totalItemCountToRemove - handedInCount) < 0.01)
{
break;
}