sanik
This commit is contained in:
parent
b15ebef880
commit
eee43ad5d1
@ -108,10 +108,14 @@ public class PathNode {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (obj == null || !(obj instanceof PathNode))
|
// GOTTA GO FAST
|
||||||
return false;
|
// ALL THESE CHECKS ARE FOR PEOPLE WHO WANT SLOW CODE
|
||||||
|
// SKRT SKRT
|
||||||
|
//if (obj == null || !(obj instanceof PathNode))
|
||||||
|
// return false;
|
||||||
|
|
||||||
final PathNode other = (PathNode) obj;
|
//final PathNode other = (PathNode) obj;
|
||||||
return Objects.equals(this.pos, other.pos) && Objects.equals(this.goal, other.goal);
|
//return Objects.equals(this.pos, other.pos) && Objects.equals(this.goal, other.goal);
|
||||||
|
return this.pos.equals(((PathNode) obj).pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user