From d6220ff779ec221e705dbc7739a20e56e494a45c Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 23 Apr 2022 11:50:43 +0200 Subject: [PATCH] Fix potentual issue with location != operator --- MinecraftClient/Mapping/Location.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/Mapping/Location.cs b/MinecraftClient/Mapping/Location.cs index df780573..00f18071 100644 --- a/MinecraftClient/Mapping/Location.cs +++ b/MinecraftClient/Mapping/Location.cs @@ -200,9 +200,9 @@ namespace MinecraftClient.Mapping public static bool operator !=(Location loc1, Location loc2) { if (loc1 == null && loc2 == null) - return true; - if (loc1 == null || loc2 == null) return false; + if (loc1 == null || loc2 == null) + return true; return !loc1.Equals(loc2); }