Revert "Remove check_uplink_validity proc as it isn't useful yet"

This reverts commit 78360811c1.
This commit is contained in:
Anasari
2018-07-31 13:47:42 +08:00
parent 78360811c1
commit eb776551d5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ var/list/world_uplinks = list()
var/datum/uplink_item/UI = item
var/path = UI.refund_path || UI.item
var/cost = UI.refund_amount || UI.cost
if(I.type == path && UI.refundable)
if(I.type == path && UI.refundable && I.check_uplink_validity())
uses += cost
used_TC -= cost
to_chat(user, "<span class='notice'>[I] refunded.</span>")