Skip to content

Commit

Permalink
only print debug message if actually aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
kralverde committed Oct 30, 2024
1 parent 350d9f2 commit ea9400e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pumpkin/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,11 @@ impl World {

// Remove all canceled chunks
for task_id in ids {
player.client.stop_watching_expensive_task(&task_id);
log::debug!("Aborted task {} (pre-process)", task_id,);
if let Some(task) = player.client.stop_watching_expensive_task(&task_id) {
if task.aborted() {
log::debug!("Aborted task {} (pre-process)", task_id);
}
}
}

{
Expand Down

0 comments on commit ea9400e

Please sign in to comment.