Skip to content

Commit

Permalink
Fixes that one mining vendor runtime (BeeStation#10841)
Browse files Browse the repository at this point in the history
* The thing

* Update code/modules/mining/machine_vending.dm

Co-authored-by: Tsar-Salat <[email protected]>

---------

Co-authored-by: Tsar-Salat <[email protected]>
  • Loading branch information
2 people authored and DrDuckedGoose committed May 11, 2024
1 parent ba2161c commit 198a2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mining/machine_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
return
to_chat(usr, "<span class='notice'>[src] clanks to life briefly before vending [prize.equipment_name]!</span>")
var/obj/created = new prize.equipment_path(loc)
if (M.CanReach(src))
if (M.CanReach(src) && isitem(created))
M.put_in_hands(created)
SSblackbox.record_feedback("nested tally", "mining_equipment_bought", 1, list("[type]", "[prize.equipment_path]"))
. = TRUE
Expand Down

0 comments on commit 198a2c4

Please sign in to comment.