Merge pull request #1746 from Gabscap/fix-location_equals

Fix Location.equals
This commit is contained in:
Jesse Boyd 2017-10-29 21:08:58 +11:00 committed by GitHub
commit 7b04ec9ff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ public class Location implements Cloneable, Comparable<Location> {
return false;
}
Location l = (Location) o;
return this.x == l.getX() && this.y == l.getY() && this.z == l.getZ() && this.world.equals(l.getWorld()) && this.yaw == l.getY()
return this.x == l.getX() && this.y == l.getY() && this.z == l.getZ() && this.world.equals(l.getWorld()) && this.yaw == l.getYaw()
&& this.pitch == l.getPitch();
}