From 06cf054efb9cb546c6ff73f7e1ceaaf3d10d2b8e Mon Sep 17 00:00:00 2001 From: Drulikar Date: Sun, 21 Apr 2024 18:57:58 -0700 Subject: [PATCH] Medlink restocking requires the machine to be operable. --- code/game/machinery/vending/vendor_types/medical.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/machinery/vending/vendor_types/medical.dm b/code/game/machinery/vending/vendor_types/medical.dm index 6426313ea7ca..dd261f17a7bb 100644 --- a/code/game/machinery/vending/vendor_types/medical.dm +++ b/code/game/machinery/vending/vendor_types/medical.dm @@ -544,6 +544,8 @@ if(!get_supply_link()) STOP_PROCESSING(SSslowobj, src) return // Somehow we lost our link + if(inoperable()) + return if(world.time - SSticker.mode.round_time_lobby > 20 MINUTES) restock_supplies() restock_reagents()