This commit is contained in:
Leijurv 2018-08-13 17:03:48 -07:00
parent b15ebef880
commit eee43ad5d1
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -108,10 +108,14 @@ public class PathNode {
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof PathNode))
return false;
// GOTTA GO FAST
// 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;
return Objects.equals(this.pos, other.pos) && Objects.equals(this.goal, other.goal);
//final PathNode other = (PathNode) obj;
//return Objects.equals(this.pos, other.pos) && Objects.equals(this.goal, other.goal);
return this.pos.equals(((PathNode) obj).pos);
}
}