Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Made Vector implement Comparable<Vector> instead of Comparable<BlockVector>. Oops
Dieser Commit ist enthalten in:
Ursprung
e69ad4d08f
Commit
06ed8ecf97
@ -23,7 +23,7 @@ package com.sk89q.worldedit;
|
|||||||
*
|
*
|
||||||
* @author sk89q
|
* @author sk89q
|
||||||
*/
|
*/
|
||||||
public class Vector implements Comparable<BlockVector> {
|
public class Vector implements Comparable<Vector> {
|
||||||
protected final double x, y, z;
|
protected final double x, y, z;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -692,7 +692,7 @@ public class Vector implements Comparable<BlockVector> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(BlockVector other) {
|
public int compareTo(Vector other) {
|
||||||
if (y != other.y) return Double.compare(y, other.y);
|
if (y != other.y) return Double.compare(y, other.y);
|
||||||
if (z != other.z) return Double.compare(z, other.z);
|
if (z != other.z) return Double.compare(z, other.z);
|
||||||
if (x != other.x) return Double.compare(x, other.x);
|
if (x != other.x) return Double.compare(x, other.x);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren