diff --git a/code/game/objects/items/devices/uplinks.dm b/code/game/objects/items/devices/uplinks.dm index b02fc79891e..41ae746739c 100644 --- a/code/game/objects/items/devices/uplinks.dm +++ b/code/game/objects/items/devices/uplinks.dm @@ -27,6 +27,12 @@ A list of items and costs is stored under the datum of every game mode, alongsid ItemList = text2list(src.items, ";") // Parsing the items text string uses = ticker.mode.uplink_uses nanoui_items = generate_nanoui_items() + for(var/D in ItemList) + var/list/O = text2list(D, ":") + if(O.len>0) + valid_items += O[1] + + /* Built the Items List for use with NanoUI @@ -56,16 +62,6 @@ A list of items and costs is stored under the datum of every game mode, alongsid return items_nano - - - - - //Halfassed fix for href exploit ~Z - for(var/D in ItemList) - var/list/O = text2list(D, ":") - if(O.len>0) - valid_items += O[1] - //Let's build a menu! /obj/item/device/uplink/proc/generate_menu()