Handles count of islands that have no count history.

https://github.com/BentoBoxWorld/addon-limits/issues/20
This commit is contained in:
tastybento 2019-05-24 19:54:48 -07:00
parent 448229892c
commit 3450fe4695

View File

@ -135,6 +135,9 @@ public class LimitsCalc {
private void tidyUp() { private void tidyUp() {
// Cancel // Cancel
task.cancel(); task.cancel();
if (ibc == null) {
ibc = new IslandBlockCount();
}
ibc.setBlockCount(blockCount); ibc.setBlockCount(blockCount);
bll.setIsland(island.getUniqueId(), ibc); bll.setIsland(island.getUniqueId(), ibc);
sender.sendMessage("admin.limits.calc.finished"); sender.sendMessage("admin.limits.calc.finished");