From 05a9528cd87cddc479c5f97498394a4a166330b1 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Thu, 23 Sep 2021 12:28:54 +0200 Subject: [PATCH] Fix ReagentUnit int comparisons. - They floored the ReagentUnit before, which is a terrible idea. --- Content.Shared/Chemistry/Reagent/ReagentUnit.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Content.Shared/Chemistry/Reagent/ReagentUnit.cs b/Content.Shared/Chemistry/Reagent/ReagentUnit.cs index d03f111376..6dcb02f93e 100644 --- a/Content.Shared/Chemistry/Reagent/ReagentUnit.cs +++ b/Content.Shared/Chemistry/Reagent/ReagentUnit.cs @@ -106,32 +106,32 @@ namespace Content.Shared.Chemistry.Reagent public static bool operator <=(ReagentUnit a, int b) { - return a.ShiftDown() <= b; + return a <= New(b); } public static bool operator >=(ReagentUnit a, int b) { - return a.ShiftDown() >= b; + return a >= New(b); } public static bool operator <(ReagentUnit a, int b) { - return a.ShiftDown() < b; + return a < New(b); } public static bool operator >(ReagentUnit a, int b) { - return a.ShiftDown() > b; + return a > New(b); } public static bool operator ==(ReagentUnit a, int b) { - return a.Int() == b; + return a == New(b); } public static bool operator !=(ReagentUnit a, int b) { - return a.Int() != b; + return a != New(b); } public static bool operator ==(ReagentUnit a, ReagentUnit b)