File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/main/java/world/bentobox/level/calculators Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 5656import world .bentobox .level .config .BlockConfig ;
5757
5858public 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}
You can’t perform that action at this time.
0 commit comments