Skip to content

Commit

Permalink
fix this
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Nov 5, 2023
1 parent 8c6be96 commit 015ffed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/turfs/processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,15 @@ fn post_process() {
})));
}

if should_update_vis
&& sender
.try_send(Box::new(move || {
let turf = ByondValue::new_ref(0x01, id);
update_visuals(turf)?;
Ok(())
}))
.is_err()
{
let send_failed = sender
.try_send(Box::new(move || {
let turf = ByondValue::new_ref(0x01, id);
update_visuals(turf)?;
Ok(())
}))
.is_err();

if should_update_vis && send_failed {
//this update failed, consider vis_cache to be bogus so it can send the
//update again later
tmix.invalidate_vis_cache();
Expand Down

0 comments on commit 015ffed

Please sign in to comment.