@SuppressWarnings("RedundantIfStatement") public static boolean equals(cn.nukkit.level.Location a,cn.nukkit.level.Location b){
  if (Math.abs(a.getX() - b.getX()) > EQUALS_PRECISION)   return false;
  if (Math.abs(a.getY() - b.getY()) > EQUALS_PRECISION)   return false;
  if (Math.abs(a.getZ() - b.getZ()) > EQUALS_PRECISION)   return false;
  return true;
}

@ SuppressWarnings ( "RedundantIfStatement" ) public static boolean equals ( cn . nukkit . level . Location a , cn . nukkit . level . Location b ) { if ( Math . abs ( a . getX ( ) - b . getX ( ) ) > EQUALS_PRECISION ) return false ; if ( Math . abs ( a . getY ( ) - b . getY ( ) ) > EQUALS_PRECISION ) return false ; if ( Math . abs ( a . getZ ( ) - b . getZ ( ) ) > EQUALS_PRECISION ) return false ; return true ; }
nukkit ' s location class has serious problems with floating point precision .
