Removed color whitelist
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
// Save modified name
|
||||
if(initial(name) != name)
|
||||
assembly_params["name"] = name
|
||||
|
||||
|
||||
// Save modified description
|
||||
if(initial(desc) != desc)
|
||||
assembly_params["desc"] = desc
|
||||
@@ -144,8 +144,6 @@
|
||||
return "Bad assembly name."
|
||||
if(assembly_params["desc"] && !reject_bad_text(assembly_params["desc"]))
|
||||
return "Bad assembly description."
|
||||
if(assembly_params["detail_color"] && !(assembly_params["detail_color"] in color_whitelist))
|
||||
return "Bad assembly color."
|
||||
|
||||
// Loads assembly parameters from a list
|
||||
// Doesn't verify any of the parameters it loads, this is the job of verify_save()
|
||||
@@ -153,7 +151,7 @@
|
||||
// Load modified name, if any.
|
||||
if(assembly_params["name"])
|
||||
name = assembly_params["name"]
|
||||
|
||||
|
||||
// Load modified description, if any.
|
||||
if(assembly_params["desc"])
|
||||
desc = assembly_params["desc"]
|
||||
|
||||
Reference in New Issue
Block a user