Skip to content

Commit

Permalink
fixed NotedAreaTracker removal of areas
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 9, 2022
1 parent bdc237b commit 5009b00
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Expand Up @@ -41,6 +41,20 @@ public TrackedArea(AreaContainmentObject area) {
public boolean mightContain(int x, int z) {
return x >= lowX && x <= highX && z >= lowZ && z <= highZ;
}

@Override
public int hashCode() {
return area.hashCode();
}

@Override
public boolean equals(Object other) {
if (!(other instanceof TrackedArea)) {
return false;
}
TrackedArea compareTo = (TrackedArea) other;
return lowX == compareTo.lowX && lowZ == compareTo.lowZ && highX == compareTo.highX && highZ == compareTo.highZ && area.equals(compareTo.area);
}
}

public static final class AreaSet {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -11,7 +11,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<craftbukkit.version>1.19-R0.1-SNAPSHOT</craftbukkit.version>
<citizens.version>2.0.29-SNAPSHOT</citizens.version>
<citizens.version>2.0.30-SNAPSHOT</citizens.version>
<dcore.version>1.90.1-SNAPSHOT</dcore.version>
<BUILD_NUMBER>Unknown</BUILD_NUMBER>
<BUILD_CLASS>CUSTOM</BUILD_CLASS>
Expand Down

0 comments on commit 5009b00

Please sign in to comment.