Fix ReagentQuantity Equality check (#39574)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
291a6c9808
commit
de7486b8db
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user