Fix potentual issue with location != operator

This commit is contained in:
ORelio 2022-04-23 11:50:43 +02:00
parent 17dbe10ff3
commit d6220ff779

View file

@ -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);
}