mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix == operator causing crash
This commit is contained in:
parent
e92f449749
commit
a98438131f
1 changed files with 0 additions and 18 deletions
|
|
@ -295,15 +295,6 @@ namespace MinecraftClient.Mapping
|
||||||
return loc1.Equals(loc2);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Compare two locations. Locations are not equals if the integer part of their coordinates are not equals.
|
/// Compare two locations. Locations are not equals if the integer part of their coordinates are not equals.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -315,15 +306,6 @@ namespace MinecraftClient.Mapping
|
||||||
return !loc1.Equals(loc2);
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sums two locations and returns the result.
|
/// Sums two locations and returns the result.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue