From 3cee8f53b248dbd992e4d21b8a45e4822abae09a Mon Sep 17 00:00:00 2001 From: Fikou <23585223+Fikou@users.noreply.github.com> Date: Tue, 12 Oct 2021 15:34:49 +0200 Subject: [PATCH] fixes mode switch actions on storage items being broken (#62059) Checks the wrong variable, changed it so that it now checks the correct variable --- code/datums/components/storage/storage.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/storage/storage.dm b/code/datums/components/storage/storage.dm index d4d9c89419b..49f8acc0152 100644 --- a/code/datums/components/storage/storage.dm +++ b/code/datums/components/storage/storage.dm @@ -142,7 +142,7 @@ var/obj/item/I = parent modeswitch_action = new(I) RegisterSignal(modeswitch_action, COMSIG_ACTION_TRIGGER, .proc/action_trigger) - if(I.obj_flags & IN_INVENTORY) + if(I.item_flags & IN_INVENTORY) var/mob/M = I.loc if(!istype(M)) return