Skip to content

Commit

Permalink
Fix chemid param
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Feb 14, 2024
1 parent fe2f2b8 commit de745d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/machinery/medical_pod/sleeper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de745d2

Please sign in to comment.