From de745d2625dd439ac1a66e0ff35c5cbf7762c730 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Tue, 13 Feb 2024 20:29:26 -0800 Subject: [PATCH] Fix chemid param --- code/game/machinery/medical_pod/sleeper.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/machinery/medical_pod/sleeper.dm b/code/game/machinery/medical_pod/sleeper.dm index 84ef2f579ba1..623529677eb4 100644 --- a/code/game/machinery/medical_pod/sleeper.dm +++ b/code/game/machinery/medical_pod/sleeper.dm @@ -208,6 +208,9 @@ var/amount = text2num(params["amount"]) if(!length(chemical) || amount <= 0) return + if(!(chemical in connected.available_chemicals)) + log_debug("[chemical] is not available to inject in a [src]!") + return if(connected.occupant.health > connected.min_health || (chemical in connected.emergency_chems)) connected.inject_chemical(usr, chemical, amount) else