mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-29 13:20:32 +00:00
fix Vector3Impl#equals
This commit is contained in:
@@ -257,9 +257,9 @@ public class Vector3Impl implements Vector3 {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
if(!(obj instanceof Vector3Impl)) return false;
|
if(!(obj instanceof Vector3)) return false;
|
||||||
Vector3Impl other = (Vector3Impl) obj;
|
Vector3 other = (Vector3) obj;
|
||||||
return MathUtil.equals(x, other.x) && MathUtil.equals(y, other.y) && MathUtil.equals(x, other.z);
|
return MathUtil.equals(x, other.getX()) && MathUtil.equals(y, other.getY()) && MathUtil.equals(z, other.getZ());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user