Deaths were counted twice if team deaths were counted.

Fixes https://github.com/BentoBoxWorld/Level/issues/216
This commit is contained in:
tastybento 2021-03-24 22:37:50 -07:00
parent f2b3903c6f
commit fdf5da43c6

View File

@ -401,11 +401,6 @@ public class IslandLevelCalculator {
} }
} }
} }
// Chunk finished
if (chunk.getWorld().getEnvironment().equals(Environment.NORMAL) && chunksToCheck.isEmpty()) {
// This was the last chunk
tidyUp();
}
// Complete the future - this must go back onto the primary thread to exit async otherwise subsequent actions will be async // Complete the future - this must go back onto the primary thread to exit async otherwise subsequent actions will be async
Bukkit.getScheduler().runTask(addon.getPlugin(),() -> { Bukkit.getScheduler().runTask(addon.getPlugin(),() -> {
// Deal with any stacked blocks // Deal with any stacked blocks