Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-10 05:20:04 +01:00
Fixed Vector.containedWithinBlock(min, max) and Vector2D.equals(Vector2D)
Dieser Commit ist enthalten in:
Ursprung
f11415f451
Commit
4500f93a1b
@ -508,7 +508,7 @@ public class Vector {
|
|||||||
public boolean containedWithinBlock(Vector min, Vector max) {
|
public boolean containedWithinBlock(Vector min, Vector max) {
|
||||||
return getBlockX() >= min.getBlockX() && getBlockX() <= max.getBlockX()
|
return getBlockX() >= min.getBlockX() && getBlockX() <= max.getBlockX()
|
||||||
&& getBlockY() >= min.getBlockY() && getBlockY() <= max.getBlockY()
|
&& getBlockY() >= min.getBlockY() && getBlockY() <= max.getBlockY()
|
||||||
&& getBlockZ() >= min.getBlockZ() && getBlockZ() <= max.getBlockY();
|
&& getBlockZ() >= min.getBlockZ() && getBlockZ() <= max.getBlockZ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -165,7 +165,7 @@ public class Vector2D {
|
|||||||
if (!(obj instanceof Vector2D)) {
|
if (!(obj instanceof Vector2D)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Vector other = (Vector) obj;
|
Vector2D other = (Vector2D) obj;
|
||||||
return other.x == this.x && other.z == this.z;
|
return other.x == this.x && other.z == this.z;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren