mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Stop stacks merging when in a machine and not being used as a construction part, fixes #68456 (#69295)
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user