|
@@ -33,7 +33,7 @@ public class Geometry {
|
|
|
* @return true, if the statement is correct
|
|
|
*/
|
|
|
public static boolean isCloser(Location targetLocation, Location closerLocation, Location furtherAwayLocation) {
|
|
|
- return (targetLocation.distanceSquared(closerLocation) < targetLocation.distanceSquared(furtherAwayLocation));
|
|
|
+ return targetLocation.distanceSquared(closerLocation) < targetLocation.distanceSquared(furtherAwayLocation);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -81,7 +81,7 @@ public class Geometry {
|
|
|
* @return true, if the statement is correct
|
|
|
*/
|
|
|
public static boolean isInWorld(Location targetLocation, World world) {
|
|
|
- return (targetLocation.getWorld().getName().equals(world.getName()));
|
|
|
+ return targetLocation.getWorld().getName().equals(world.getName());
|
|
|
}
|
|
|
|
|
|
}
|