Skip to content

Commit

Permalink
Prevent trying to print expired requisition contract barcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
flappybatpal committed Dec 27, 2024
1 parent fe151d8 commit f6c66c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/obj/machinery/computer/QM_supply.dm
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ var/global/datum/rockbox_globals/rockbox_globals = new /datum/rockbox_globals
if(!GET_COOLDOWN(src, "print"))
var/datum/req_contract/RC = locate(href_list["subaction"]) in shippingmarket.req_contracts
if (isnull(RC))
var/debug_subaction = href_list["subaction"]
logTheThing(LOG_DEBUG, src, "Barcode print error - [debug_subaction]")
boutput(usr, SPAN_ALERT("The requisition contract has expired due to a market update."))
return
src.print_barcode(RC, RC.req_code)
else
boutput(usr, SPAN_ALERT("It's still cooling off from the last print!"))
Expand Down

0 comments on commit f6c66c8

Please sign in to comment.