fixes mode switch actions on storage items being broken (#62059)

Checks the wrong variable, changed it so that it now checks the correct variable
This commit is contained in:
Fikou
2021-10-12 15:34:49 +02:00
committed by GitHub
parent f80caf7216
commit 3cee8f53b2
+1 -1
View File
@@ -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