瀏覽代碼

Small refactoring

RedstoneFuture 2 年之前
父節點
當前提交
54f5424fbc

+ 2 - 2
missilewars-plugin/src/main/java/de/butzlabben/missilewars/util/geometry/Geometry.java

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