Remote materials don't block multitool on failure (#84797)

## About The Pull Request
- Fixes #84794

`/datum/component/remote_materials` blocks the tool act from continuing
when linking with ore silo fails. We don't want that for stacking
machines

## Changelog
🆑
fix: stacking machines can be linked with its console via multitool
/🆑
This commit is contained in:
SyncIt21
2024-07-10 03:33:41 +05:30
committed by GitHub
parent cb5a5c1c69
commit e4015a6f7f
2 changed files with 11 additions and 8 deletions
+10 -7
View File
@@ -127,13 +127,16 @@
if(istype(AM, /obj/item/stack/sheet) && AM.loc == get_step(src, input_dir))
process_sheet(AM)
/obj/machinery/mineral/stacking_machine/multitool_act(mob/living/user, obj/item/multitool/M)
if(istype(M))
if(istype(M.buffer, /obj/machinery/mineral/stacking_unit_console))
console = M.buffer
console.machine = src
to_chat(user, span_notice("You link [src] to the console in [M]'s buffer."))
return TRUE
/obj/machinery/mineral/stacking_machine/multitool_act(mob/living/user, obj/item/multitool/multi_tool)
if(user.combat_mode || multi_tool.item_flags & ABSTRACT || multi_tool.flags_1 & HOLOGRAM_1)
return ITEM_INTERACT_SKIP_TO_ATTACK
. = ITEM_INTERACT_BLOCKING
if(istype(multi_tool.buffer, /obj/machinery/mineral/stacking_unit_console))
console = multi_tool.buffer
console.machine = src
to_chat(user, span_notice("You link [src] to the console in [multi_tool]'s buffer."))
return ITEM_INTERACT_SUCCESS
/obj/machinery/mineral/stacking_machine/proc/rotate(input)
if (input)