Skip to content

Commit

Permalink
fixes half-broken vendor mechcomp html stripping (#15341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Metekillot committed Aug 14, 2023
1 parent bd6a74b commit 9eaf1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/vending/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ ADMIN_INTERACT_PROCS(/obj/machinery/vending, proc/throw_item)

if(length(item_name_to_throw))
for(var/datum/data/vending_product/R in src.product_list)
if(lowertext(item_name_to_throw) == lowertext(strip_html(R.product_name_cache[R.product_path], no_fucking_autoparse = TRUE)))
if(lowertext(strip_html(item_name_to_throw, no_fucking_autoparse = TRUE)) == lowertext(strip_html(R.product_name_cache[R.product_path], no_fucking_autoparse = TRUE)))
if(R.product_amount > 0 && !(R.product_hidden && !src.extended_inventory))
throw_item_act(R, target)
return R
Expand Down

0 comments on commit 9eaf1a4

Please sign in to comment.