]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix ReagentQuantity Equality check (#39574)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Mon, 11 Aug 2025 22:38:01 +0000 (15:38 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 22:38:01 +0000 (00:38 +0200)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/Chemistry/Reagent/ReagentQuantity.cs

index 4cc87f5bd78d31b7f89ed32df206a18beb2e3b7f..cc5b52fbe2edf7e3a0dfb0ef1e797478c17cf551 100644 (file)
@@ -52,7 +52,7 @@ public partial struct ReagentQuantity : IEquatable<ReagentQuantity>
 
     public bool Equals(ReagentQuantity other)
     {
-        return Quantity != other.Quantity && Reagent.Equals(other.Reagent);
+        return Quantity == other.Quantity && Reagent.Equals(other.Reagent);
     }
 
     public override bool Equals(object? obj)