From df463ad0951c057eb83743bb7bcf4120b22b2085 Mon Sep 17 00:00:00 2001 From: Theos Date: Thu, 21 Dec 2023 13:19:15 -0500 Subject: [PATCH] fix 2501 Signed-off-by: Theos --- code/game/objects/items/melee/misc.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/melee/misc.dm b/code/game/objects/items/melee/misc.dm index 153c3a75564d..faf1e6d92995 100644 --- a/code/game/objects/items/melee/misc.dm +++ b/code/game/objects/items/melee/misc.dm @@ -763,12 +763,12 @@ /obj/item/storage/belt/weebstick/afterattack(atom/A, mob/living/user, proximity_flag, params) . = ..() if(primed && length(contents)) + if(!(A in view(user.client.view, user))) + return var/obj/item/I = contents[1] if(!user.put_in_inactive_hand(I)) to_chat(user, "You need a free hand!") return - if(!(A in view(user.client.view, user))) - return var/datum/component/storage/CP = GetComponent(/datum/component/storage) CP.locked = FALSE primed = FALSE