From 56f7c885a0ef3ca8b150baa6ac54a205353fd88c Mon Sep 17 00:00:00 2001 From: MLGTASTICa <61350382+MLGTASTICa@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:25:17 +0200 Subject: [PATCH] fix (#8356) --- code/_onclick/item_attack.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index c0fc84bd745..2b2b5428f59 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -84,7 +84,7 @@ avoid code duplication. This includes items that may sometimes act as a standard /obj/item/proc/swing_attack(atom/A, mob/user, params) var/holdinghand = user.get_inventory_slot(src) - if(params && params["mech"]) + if(params && islist(params) && params["mech"]) holdinghand = params["mech_hand"] var/turf/R var/turf/C