File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/main/java/world/bentobox/level/calculators Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 56
56
import world .bentobox .level .config .BlockConfig ;
57
57
58
58
public class IslandLevelCalculator {
59
+ private final UUID calcId = UUID .randomUUID (); // ID for hashing
59
60
private static final String LINE_BREAK = "==================================" ;
60
61
public static final long MAX_AMOUNT = 10000000 ;
61
62
private static final int CHUNKS_TO_SCAN = 100 ;
@@ -788,4 +789,16 @@ private CompletableFuture<Void> handleStackedBlocks() {
788
789
789
790
}
790
791
792
+ @ Override
793
+ public boolean equals (Object o ) {
794
+ if (this == o ) return true ;
795
+ if (!(o instanceof IslandLevelCalculator )) return false ;
796
+ IslandLevelCalculator that = (IslandLevelCalculator ) o ;
797
+ return calcId .equals (that .calcId );
798
+ }
799
+
800
+ @ Override
801
+ public int hashCode () {
802
+ return calcId .hashCode ();
803
+ }
791
804
}
You can’t perform that action at this time.
0 commit comments