mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Made Vector implement Comparable<Vector> instead of Comparable<BlockVector>. Oops
This commit is contained in:
parent
e69ad4d08f
commit
06ed8ecf97
@ -23,7 +23,7 @@
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public class Vector implements Comparable<BlockVector> {
|
||||
public class Vector implements Comparable<Vector> {
|
||||
protected final double x, y, z;
|
||||
|
||||
/**
|
||||
@ -692,7 +692,7 @@ public boolean equals(Object obj) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(BlockVector other) {
|
||||
public int compareTo(Vector other) {
|
||||
if (y != other.y) return Double.compare(y, other.y);
|
||||
if (z != other.z) return Double.compare(z, other.z);
|
||||
if (x != other.x) return Double.compare(x, other.x);
|
||||
|
Loading…
Reference in New Issue
Block a user