Skip to content

Commit

Permalink
Fixed Island#clearBlockCounts not clearing the currentTotalBlockCount…
Browse files Browse the repository at this point in the history
…s counter (#1675)
  • Loading branch information
OmerBenGera committed Apr 14, 2023
1 parent 4ce19da commit c823233
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -2163,8 +2163,11 @@ public BigInteger getExactBlockCountAsBigInteger(Key key) {
@Override
public void clearBlockCounts() {
blocksTracker.clearBlockCounts();
this.currentTotalBlockCounts.set(BigInteger.ZERO);

islandWorth.set(BigDecimal.ZERO);
islandLevel.set(BigDecimal.ZERO);

plugin.getGrid().getIslandsContainer().notifyChange(SortingTypes.BY_WORTH, this);
plugin.getGrid().getIslandsContainer().notifyChange(SortingTypes.BY_LEVEL, this);
}
Expand Down

0 comments on commit c823233

Please sign in to comment.