From eee43ad5d1a2da326fa5f222c02b85e5d72fa82f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 13 Aug 2018 17:03:48 -0700 Subject: [PATCH] sanik --- .../java/baritone/bot/pathing/calc/PathNode.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/baritone/bot/pathing/calc/PathNode.java b/src/main/java/baritone/bot/pathing/calc/PathNode.java index d8490cac..f9130b4b 100644 --- a/src/main/java/baritone/bot/pathing/calc/PathNode.java +++ b/src/main/java/baritone/bot/pathing/calc/PathNode.java @@ -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); } }