Skip to content

Commit 766f57f

Browse files
authored
Merge pull request #379 from BentoBoxWorld/develop
Release 2.21.3
2 parents 4bf9574 + 7962915 commit 766f57f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<!-- Do not change unless you want different name for local builds. -->
6868
<build.number>-LOCAL</build.number>
6969
<!-- This allows to change between versions. -->
70-
<build.version>2.21.2</build.version>
70+
<build.version>2.21.3</build.version>
7171
<sonar.projectKey>BentoBoxWorld_Level</sonar.projectKey>
7272
<sonar.organization>bentobox-world</sonar.organization>
7373
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import world.bentobox.level.config.BlockConfig;
5757

5858
public class IslandLevelCalculator {
59+
private final UUID calcId = UUID.randomUUID(); // ID for hashing
5960
private static final String LINE_BREAK = "==================================";
6061
public static final long MAX_AMOUNT = 10000000;
6162
private static final int CHUNKS_TO_SCAN = 100;
@@ -791,4 +792,16 @@ private CompletableFuture<Void> handleStackedBlocks() {
791792

792793
}
793794

795+
@Override
796+
public boolean equals(Object o) {
797+
if (this == o) return true;
798+
if (!(o instanceof IslandLevelCalculator)) return false;
799+
IslandLevelCalculator that = (IslandLevelCalculator) o;
800+
return calcId.equals(that.calcId);
801+
}
802+
803+
@Override
804+
public int hashCode() {
805+
return calcId.hashCode();
806+
}
794807
}

0 commit comments

Comments
 (0)