1
0
Fork 0

Bugfix: Correct LocationReference class' equating logic

This commit is contained in:
Starbeamrainbowlabs 2017-01-07 20:20:20 +00:00
parent 37051e0f7b
commit d8677a6e4b
1 changed files with 4 additions and 4 deletions

View File

@ -23,12 +23,12 @@ namespace Nibriboard.RippleSpace
public override bool Equals(object obj)
{
ChunkReference otherChunkReference = obj as ChunkReference;
if (otherChunkReference == null)
LocationReference otherLocationReference = obj as LocationReference;
if (otherLocationReference == null)
return false;
if(X == otherChunkReference.X && Y == otherChunkReference.Y &&
Plane == otherChunkReference.Plane)
if(X == otherLocationReference.X && Y == otherLocationReference.Y &&
Plane == otherLocationReference.Plane)
{
return true;
}