Fixed some warnings.

This commit is contained in:
TomyLobo 2013-11-10 13:50:27 +01:00
parent 157c0fa60b
commit b299632d00
2 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,6 @@
package com.sk89q.worldedit.bukkit;
import com.sk89q.worldedit.blocks.BlockID;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.entity.Player;

View File

@ -117,6 +117,7 @@ public class BukkitUtil {
* Bukkit's Location class has serious problems with floating point
* precision.
*/
@SuppressWarnings("RedundantIfStatement")
public static boolean equals(org.bukkit.Location a, org.bukkit.Location b) {
if (Math.abs(a.getX() - b.getX()) > EQUALS_PRECISION) return false;
if (Math.abs(a.getY() - b.getY()) > EQUALS_PRECISION) return false;