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)
|
public override bool Equals(object obj)
|
||||||
{
|
{
|
||||||
ChunkReference otherChunkReference = obj as ChunkReference;
|
LocationReference otherLocationReference = obj as LocationReference;
|
||||||
if (otherChunkReference == null)
|
if (otherLocationReference == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(X == otherChunkReference.X && Y == otherChunkReference.Y &&
|
if(X == otherLocationReference.X && Y == otherLocationReference.Y &&
|
||||||
Plane == otherChunkReference.Plane)
|
Plane == otherLocationReference.Plane)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue