From 4bf30703ad90aae9435b21533f8902cb073dd2fc Mon Sep 17 00:00:00 2001 From: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Date: Thu, 21 Sep 2023 21:35:13 -0400 Subject: [PATCH] [NO GBP] Fixes conveyor belt runtimes from screentips (#78478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## About The Pull Request In #78278 it looks like I missed confirming for `tool_behavior` when mousing over on screentips, causing them to throw runtimes when not holding the correct tool. Oops. This corrects that, now properly providing screentips based on wrench and screwdriver mouseover. ## Why It's Good For The Game Runtimes bad. 🐛 💥 ## Changelog :cl: fix: Conveyor belts now properly show their new screentips on mouseover with tools. /:cl: --- code/modules/recycling/conveyor.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/recycling/conveyor.dm b/code/modules/recycling/conveyor.dm index b68230686a8..cb1a0800c51 100644 --- a/code/modules/recycling/conveyor.dm +++ b/code/modules/recycling/conveyor.dm @@ -58,10 +58,10 @@ GLOBAL_LIST_EMPTY(conveyors_by_id) if(istype(held_item, /obj/item/stack/conveyor)) context[SCREENTIP_CONTEXT_LMB] = "Extend current conveyor belt" return CONTEXTUAL_SCREENTIP_SET - if(held_item.tool_behaviour == TOOL_WRENCH) + if(held_item?.tool_behaviour == TOOL_WRENCH) context[SCREENTIP_CONTEXT_LMB] = "Rotate conveyor belt" return CONTEXTUAL_SCREENTIP_SET - if(held_item.tool_behaviour == TOOL_SCREWDRIVER) + if(held_item?.tool_behaviour == TOOL_SCREWDRIVER) context[SCREENTIP_CONTEXT_LMB] = "Invert conveyor belt" context[SCREENTIP_CONTEXT_RMB] = "Flip conveyor belt" return CONTEXTUAL_SCREENTIP_SET