Makes it so that datums can take entity inputs too (#61930)

Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
Watermelon914
2021-10-09 04:31:38 -07:00
committed by GitHub
co-authored by Watermelon914
parent 9c884e5629
commit 1590ae1f93
6 changed files with 19 additions and 5 deletions
@@ -468,7 +468,7 @@ GLOBAL_LIST_EMPTY_TYPED(integrated_circuits, /obj/item/integrated_circuit)
return TRUE
if(params["marked_atom"])
if(port.datatype != PORT_TYPE_ATOM && port.datatype != PORT_TYPE_ANY)
if(!(port.datatype_handler.datatype_flags & DATATYPE_FLAG_ALLOW_ATOM_INPUT))
return
var/obj/item/multitool/circuit/marker = usr.get_active_held_item()
// Let's admins upload marked datums to an entity port.