Skip to content

Commit

Permalink
ticket can still be null when reloading plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Feb 8, 2024
1 parent 979d5df commit 2a106f0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ private void run() {
try {
while (!this.ticketsToScan.isEmpty()) {
Ticket ticket = this.ticketsToScan.poll();
if (ticket == null) break;

Collection<Point> set = this.regionsToScan.getOrDefault(ticket.world, new HashSet<>());
set.add(ticket.region);
this.regionsToScan.put(ticket.world, set);
Expand Down

0 comments on commit 2a106f0

Please sign in to comment.