mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-06 12:16:11 +08:00
*
This commit is contained in:
parent
ad7fdd19fb
commit
58094c72c3
@ -73,6 +73,11 @@ public BlockVector(double x, double y, double z) {
|
||||
super(x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return ((int) x ^ ((int) z << 12)) ^ ((int) y << 24);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof Vector)) {
|
||||
|
@ -69,6 +69,11 @@ public BlockVector2D(double x, double z) {
|
||||
super(x, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return ((int) x << 16) ^ (int) z;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj instanceof Vector2D)) {
|
||||
|
Loading…
Reference in New Issue
Block a user