mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-24 10:17:39 +00:00
Fixed some warnings.
This commit is contained in:
parent
157c0fa60b
commit
b299632d00
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.bukkit;
|
package com.sk89q.worldedit.bukkit;
|
||||||
|
|
||||||
import com.sk89q.worldedit.blocks.BlockID;
|
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -117,6 +117,7 @@ public class BukkitUtil {
|
|||||||
* Bukkit's Location class has serious problems with floating point
|
* Bukkit's Location class has serious problems with floating point
|
||||||
* precision.
|
* precision.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("RedundantIfStatement")
|
||||||
public static boolean equals(org.bukkit.Location a, org.bukkit.Location b) {
|
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.getX() - b.getX()) > EQUALS_PRECISION) return false;
|
||||||
if (Math.abs(a.getY() - b.getY()) > EQUALS_PRECISION) return false;
|
if (Math.abs(a.getY() - b.getY()) > EQUALS_PRECISION) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user