mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
tgui radios; clean up frequency code
This commit is contained in:
@@ -7,6 +7,6 @@
|
||||
/var/global/datum/ui_state/inventory_state/inventory_state = new()
|
||||
|
||||
/datum/ui_state/inventory_state/can_use_topic(src_object, mob/user)
|
||||
if(!(src_object in user))
|
||||
if(!(src_object in user.contents))
|
||||
return UI_CLOSE
|
||||
return user.shared_ui_interaction(src_object)
|
||||
|
||||
@@ -244,10 +244,11 @@
|
||||
json_data["data"] = data
|
||||
json_data["adata"] = data
|
||||
|
||||
// Generate the JSON; replace bad characters.
|
||||
// Generate the JSON.
|
||||
var/json = JSON.stringify(json_data)
|
||||
json = replacetextEx(json, "\improper", "")
|
||||
|
||||
// Strip #255/improper.
|
||||
json = regex_replaceall(json, "\improper", "")
|
||||
json = regex_replaceall(json, "\proper", "")
|
||||
return json
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user