Fixed a bug where Point was not returning accurate results with .equals(), breaking undo code. Temporarily using org.apache.commons.lang3.builder.EqualsBuilder to fix the problem.

This commit is contained in:
sk89q 2010-10-03 17:29:17 -07:00
parent a620ca9efe
commit c0e78bebf4

View File

@ -20,6 +20,7 @@
package com.sk89q.worldedit;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.EqualsBuilder;
/**
*
@ -75,7 +76,12 @@ public final class Point<T> {
return false;
}
Point other = (Point)obj;
return other.x == x && other.y == y && other.z == z;
return new EqualsBuilder()
.append(x, other.x)
.append(y, other.y)
.append(z, other.z)
.isEquals();
}
/**