Stop stacks merging when in a machine and not being used as a construction part, fixes #68456 (#69295)

This commit is contained in:
RandomGamer123
2022-08-24 22:48:05 -04:00
committed by GitHub
parent e6c6eb15b5
commit 0f373cb58b
+4
View File
@@ -572,6 +572,10 @@
return FALSE
if(ismob(loc) && !inhand) // no merging with items that are on the mob
return FALSE
if(istype(loc, /obj/machinery)) // no merging items in machines that aren't both in componentparts
var/obj/machinery/machine = loc
if(!(src in machine.component_parts) || !(check in machine.component_parts))
return FALSE
return TRUE
/**