From 18373720d077cee90bf9a03131af2489353f5361 Mon Sep 17 00:00:00 2001 From: ExcessiveUseOfCobblestone Date: Sat, 3 Dec 2016 19:30:15 -0500 Subject: [PATCH] Fixes Sechelms --- code/modules/clothing/head/helmet.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/head/helmet.dm b/code/modules/clothing/head/helmet.dm index b3ae798ecf2..3228181f801 100644 --- a/code/modules/clothing/head/helmet.dm +++ b/code/modules/clothing/head/helmet.dm @@ -234,8 +234,8 @@ return -/obj/item/clothing/head/helmet/ui_action_click(mob/user, actiontype) - if(actiontype == /datum/action/item_action/toggle_helmet_flashlight) +/obj/item/clothing/head/helmet/ui_action_click(mob/user, action) + if(istype(action, /datum/action/item_action/toggle_helmet_flashlight)) toggle_helmlight() else ..()