mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00: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.
This commit is contained in:
parent
a620ca9efe
commit
c0e78bebf4
@ -20,6 +20,7 @@
|
|||||||
package com.sk89q.worldedit;
|
package com.sk89q.worldedit;
|
||||||
|
|
||||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
Point other = (Point)obj;
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user