mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
Bugfix: Correct LocationReference class' equating logic
This commit is contained in:
parent
37051e0f7b
commit
d8677a6e4b
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue