mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user