geforkt von Mirrors/FastAsyncWorldEdit
Fixed some warnings.
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren