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 ..()