Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Made BlockWorldVector.equals accept all kinds of Vectors, not just WorldVectors.
This should make all those compareTo==0 things unnecessary.
Dieser Commit ist enthalten in:
Ursprung
b28fdbfe4e
Commit
d7d8930cd4
@ -110,10 +110,10 @@ public class BlockWorldVector extends WorldVector {
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof WorldVector)) {
|
||||
if (!(obj instanceof Vector)) {
|
||||
return false;
|
||||
}
|
||||
WorldVector other = (WorldVector) obj;
|
||||
Vector other = (Vector) obj;
|
||||
return (int) other.getX() == (int) this.x && (int) other.getY() == (int) this.y
|
||||
&& (int) other.getZ() == (int) this.z;
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren