From 015ffed6c76dcae8ab2a4deeca8e25d9e78321d9 Mon Sep 17 00:00:00 2001 From: Katherine Kiefer Date: Sun, 5 Nov 2023 18:40:44 +1100 Subject: [PATCH] fix this --- src/turfs/processing.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/turfs/processing.rs b/src/turfs/processing.rs index 197b75da..20fc9b36 100644 --- a/src/turfs/processing.rs +++ b/src/turfs/processing.rs @@ -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();