Skip to content

Commit

Permalink
Refactor to icon_exists where I missed them in the original PR
Browse files Browse the repository at this point in the history
Will need to PR this to tgstation
  • Loading branch information
LikeLakers2 committed Feb 6, 2025
1 parent 107dbd2 commit b9cf62a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/asset_cache/assets/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@
continue

if (PERFORM_ALL_TESTS(focus_only/invalid_vending_machine_icon_states))
var/icon_states_list = icon_states(icon_file)
if (!(icon_state in icon_states_list))
if (!icon_exists(icon_file, icon_state))
var/icon_states_string
for (var/an_icon_state in icon_states_list)
for (var/an_icon_state in icon_states(icon_file))
if (!icon_states_string)
icon_states_string = "[json_encode(an_icon_state)]([text_ref(an_icon_state)])"
else
Expand Down

0 comments on commit b9cf62a

Please sign in to comment.