diff --git a/core/src/main/java/net/pl3x/map/core/renderer/task/RegionProcessor.java b/core/src/main/java/net/pl3x/map/core/renderer/task/RegionProcessor.java index fe3a85def..22134a2d6 100644 --- a/core/src/main/java/net/pl3x/map/core/renderer/task/RegionProcessor.java +++ b/core/src/main/java/net/pl3x/map/core/renderer/task/RegionProcessor.java @@ -141,6 +141,8 @@ private void run() { try { while (!this.ticketsToScan.isEmpty()) { Ticket ticket = this.ticketsToScan.poll(); + if (ticket == null) break; + Collection set = this.regionsToScan.getOrDefault(ticket.world, new HashSet<>()); set.add(ticket.region); this.regionsToScan.put(ticket.world, set);