From a98438131fe6dd64ee87c78f1553db5e3d3b70f7 Mon Sep 17 00:00:00 2001 From: BruceChen Date: Thu, 6 Oct 2022 22:16:41 +0800 Subject: [PATCH] Fix == operator causing crash --- MinecraftClient/Mapping/Location.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/MinecraftClient/Mapping/Location.cs b/MinecraftClient/Mapping/Location.cs index b64ace5e..f535c724 100644 --- a/MinecraftClient/Mapping/Location.cs +++ b/MinecraftClient/Mapping/Location.cs @@ -295,15 +295,6 @@ namespace MinecraftClient.Mapping return loc1.Equals(loc2); } - public static bool operator ==(Location? loc1, Location? loc2) - { - if (loc1 == null && loc2 == null) - return true; - if (loc1 == null || loc2 == null) - return false; - return loc1.Equals(loc2); - } - /// /// Compare two locations. Locations are not equals if the integer part of their coordinates are not equals. /// @@ -315,15 +306,6 @@ namespace MinecraftClient.Mapping return !loc1.Equals(loc2); } - public static bool operator !=(Location? loc1, Location? loc2) - { - if (loc1 == null && loc2 == null) - return false; - if (loc1 == null || loc2 == null) - return true; - return !loc1.Equals(loc2); - } - /// /// Sums two locations and returns the result. ///