3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01:00

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.

Dieser Commit ist enthalten in:
sk89q 2010-10-03 17:29:17 -07:00
Ursprung a620ca9efe
Commit c0e78bebf4

Datei anzeigen

@ -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();
}
/**