mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Made BlockWorldVector.equals accept all kinds of Vectors, not just WorldVectors.
This should make all those compareTo==0 things unnecessary.
This commit is contained in:
parent
b28fdbfe4e
commit
d7d8930cd4
@ -110,10 +110,10 @@ public class BlockWorldVector extends WorldVector {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if (!(obj instanceof WorldVector)) {
|
if (!(obj instanceof Vector)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
WorldVector other = (WorldVector) obj;
|
Vector other = (Vector) obj;
|
||||||
return (int) other.getX() == (int) this.x && (int) other.getY() == (int) this.y
|
return (int) other.getX() == (int) this.x && (int) other.getY() == (int) this.y
|
||||||
&& (int) other.getZ() == (int) this.z;
|
&& (int) other.getZ() == (int) this.z;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user