From 809a8f1fada91422e164cb2fa46865d5f4d0ebb1 Mon Sep 17 00:00:00 2001 From: Cognition Date: Fri, 27 Aug 2021 04:35:40 -0700 Subject: [PATCH] Drop it into doors --- code/_onclick/click.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 8d6b499650..cc040b1145 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -314,7 +314,7 @@ if(T.density) //no, you can't use your funny blue cube or red cube to clip into the fucking wall. return for(var/atom/C in T.contents) //nor can you clip into a window or a door/false wall that's not open. - if(C.flags_1 & PREVENT_CLICK_UNDER_1 || C.opacity || (istype(C,/obj/machinery/door) && C.density)) + if(C.opacity || (((C.flags_1 & PREVENT_CLICK_UNDER_1) > 0) != (istype(C,/obj/machinery/door) && !C.density))) //XOR operation within because doors always have PREVENT_CLICK_UNDER_1 flag enabled. Dumb, I know. return if(L.transferItemToLoc(I, T)) var/list/click_params = params2list(params)